(01-01-2015 19:42)alexinc Wrote: alright, after copying jamvm to java, im getting what i feared:
root@NAS-Server:/usr/bin# /usr/share/minimserver/bin/startc
MinimServer: Java 7 or later is required: current version is 1.5.0
java.lang.reflect.InvocationTargetException
at java.lang.reflect.VMMethod.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:327)
at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607)
at javax.swing.plaf.basic.BasicLookAndFeel.initialize(BasicLookAndFeel.java:1720)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:912)
at javax.swing.UIManager.<clinit>(UIManager.java:245)
at org.jminim.launch.Launcher.reportErrorUC(Launcher.java:427)
at org.jminim.launch.Launcher.launch(Launcher.java:118)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:30)
at java.lang.reflect.VMMethod.invoke(Native Method)
...2 more
Caused by: java.lang.UnsatisfiedLinkError: Native library `gtkpeer' not found (as file `libgtkpeer.so') in gnu.classpath.boot.library.path and java.library.path
at java.lang.Runtime.loadLibrary(Runtime.java:763)
at java.lang.System.loadLibrary(System.java:670)
at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(GtkToolkit.java:177)
at java.lang.VMClass.forName(Native Method)
at java.lang.Class.forName(Class.java:233)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:583)
...9 more
The message "Java 7 or later is required" is as expected. The other errors seem to indicate a problem with how your Java installation is configured. These errors might be resolved by moving to a later level of Java.
The 'java" executable (or link) needs to be in a directory on your PATH. For most versions of Linux, /usr/local/bin is on the PATH. It seems this isn't the case for the OpenWRT firmware.