What version of Java were MacOSX nativelibs compiled with?

Started by swuth, July 29, 2009, 19:50:29

Previous topic - Next topic

swuth

The reason I ask is that I have an applet that is compiled using the default MACOSX java version of 1.5 and when the applet loads (using appletloader which is AWESOME BTW) and switches I get a class version error. Any ideas what could be wrong? It works fine on the PC


swuth

BTW here is my output

network: Connecting http://www.ptwm.com/cubepc/CubeMobileMac_fat.jar with proxy=DIRECT
network: Connecting http://www.ptwm.com/cubepc/macosx_natives.jar.lzma with proxy=DIRECT
Exception in thread "AppletLoader.loaderThread" java.lang.UnsupportedClassVersionError: Bad version number in .class file
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:172)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
   at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:164)
   at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:702)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:615)
   at java.lang.Thread.run(Thread.java:613)

kappa

must be somehow still compiling to 1.6, i had a similar problem with the 1.6 jdk where the settings in eclipse just weren't compiling to 1.5 even though it was set to compile for 1.5, ended up just using a 1.5 jdk.

another option is you could try retroweaver on your output jar.

swuth

So the lwgl_applet_loader stuff was compiled with 1.5?

Could it be that my app and the lwgl_applet_util need to be signed with the same certif?

Thanks

CH

kappa

Quote from: swuth on July 29, 2009, 21:37:15
So the lwgl_applet_loader stuff was compiled with 1.5?

Could it be that my app and the lwgl_applet_util need to be signed with the same certif?

Thanks

CH


lwjgl's appletloader is compiled for 1.4, don't really think that is the problem most likely its your game jar which is being compiled for 1.6 compatible class files.

unlikely to be be a certificate issue either.

swuth

I went back to basics and tried running the appletloader.html from the download directory (the test html/applet  supplied with the lwgl_applet) on the Mac and it said that the
code would be treated as unsigned. It didn't give me an option to allow it or anything. The same html works fine on my PC. How do I reset the permisisions etc on the mac?