I have compiled jamvm.I downloaded blocky for github and extracted it. Then I followed some instructions here and when I execute it:
Error: jamvm VM not supported
So I modified ./blocky-jamvm from
java -jar -Xmx128M -Djava.library.path=lwjgl/native/linux:/opt/vc/lib -classpath lwjgl/jar/lwjgl.jar:lwjgl/jar/lwjgl_test.jar:lwjgl/jar/lwjgl_util.jar:slick-util.jar:ge-framework.jar:ge-demo.jar ge.demo.game.Blocky $1
to
jamvm -jar -Xmx128M -Djava.library.path=lwjgl/native/linux:/opt/vc/lib -classpath lwjgl/jar/lwjgl.jar:lwjgl/jar/lwjgl_test.jar:lwjgl/jar/lwjgl_util.jar:slick-util.jar:ge-framework.jar:ge-demo.jar ge.demo.game.Blocky $1
Error:
Exception occurred while VM initialising.
java/lang/NoClassDefFoundError: java/lang/Class
UPDATE: I installed gnu classpath and now:
(process:1110): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library `lwjgl' not found (as file `liblwjgl.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 org.lwjgl.Sys$1.run(Sys.java:73)
at java.security.AccessController.doPrivileged(AccessController.java:96)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:95)
at org.lwjgl.Sys.<clinit>(Sys.java:112)
at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
at ge.framework.render.GLES20Renderer.createDisplay(GLES20Renderer.java:126)
at ge.demo.game.Blocky.start(Blocky.java:166)
at ge.demo.game.Blocky.main(Blocky.java:1680)
I am running Arch Linux Arm hardfloat. Am I missing something here? Are there differences between the debian icedtea-7-jre-jamvm
and vanilla jamvm
?
-classpath
contains the Java API classes? Your exception is saying that they cannot be found. You can try adding the-xbootclasspath
option to specify where the runtime classes are.java/lang/Class
,java/util/List
etc, etc. Usually packaged inrt.jar
.