Bug - Fixed Mafia builds 11014+ won't launch on my Mac

laerjael

New member
Hi all,

Just tried to upgrade to latest from 11011 and the latest .jar files won't launch, with the following sort of console freakout:
5/25/12 10:17:16 PM [0x0-0x391391].com.apple.JarLauncher[11540] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10012c6b0, p = 0x10012c6b4, pEnd = 0x10012c6b8)
5/25/12 10:17:16 PM [0x0-0x391391].com.apple.JarLauncher[11540] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100110190, p = 0x100110194, pEnd = 0x100110198)
5/25/12 10:17:16 PM [0x0-0x391391].com.apple.JarLauncher[11540] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100110190, p = 0x100110194, pEnd = 0x100110198)
5/25/12 10:17:18 PM [0x0-0x391391].com.apple.JarLauncher[11540] This version of Mac OS X does not support the Apple EAWT. Full screen support will not be enabled (java.lang.ClassNotFoundException: com.apple.eawt.FullScreenUtilities)
5/25/12 10:17:18 PM [0x0-0x391391].com.apple.JarLauncher[11540] This version of Mac OS X does not support the Apple EAWT. Full screen support will not be enabled (java.lang.ClassNotFoundException: com.apple.eawt.FullScreenUtilities)
5/25/12 10:18:14 PM [0x0-0x391391].com.apple.JarLauncher[11540] This version of Mac OS X does not support the Apple EAWT. Full screen support will not be enabled (java.lang.ClassNotFoundException: com.apple.eawt.FullScreenUtilities)
5/25/12 10:18:15 PM [0x0-0x391391].com.apple.JarLauncher[11540] This version of Mac OS X does not support the Apple EAWT. Full screen support will not be enabled (java.lang.ClassNotFoundException: com.apple.eawt.FullScreenUtilities)
5/25/12 10:18:16 PM [0x0-0x391391].com.apple.JarLauncher[11540] This version of Mac OS X does not support the Apple EAWT. Full screen support will not be enabled (java.lang.ClassNotFoundException: com.apple.eawt.FullScreenUtilities)

My laptop is still running OS 10.5.8, and java -version quoth:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

Confirmed that any build 11013 and down runs fine, any build 11014 and up barfs.

Some forum searching tells me that 11014 updated the java version required, but it looks like that was to 1.5, which I appear to be running? Any assistance appreciated.
 

lostcalpolydude

Developer
Staff member
I pulled out my macbook to try looking at this. Running ant from Terminal gives me a message about javac not supporting errorProperty, which was added to build.xml so long ago that I apparently haven't compiled on this computer in a long time...

So I opened up Eclipse and had it use the same build.xml file, and it compiled without any problems.

java -version:
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-10M3646)
Java HotSpot(TM) Client VM (build 20.6-b01-415, mixed mode)

Edit: Your post was about running the jar files, not compiling them... I'm not having any problem running them on that same computer.
 
Last edited:

roippi

Developer
You're going to need to provide more console output, neither of those exceptions you pasted were fatal.
 

cahavathra

New member
hmm, is there something wrong? running osx 10.4, and I'm getting this.
[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
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 java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at apple.launcher.LaunchRunner.loadMainMethod(LaunchRunner.java:55)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:84)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
 

laerjael

New member
Hi guys, thanks for taking a look! Yes, this is about launching the latest .jars, not compiling. Roippi, you're right, I'd improperly brought in the console data. Red face. Full spit from this morning's attempt:

5/26/12 8:36:05 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10012c6a0, p = 0x10012c6a4, pEnd = 0x10012c6a8)
5/26/12 8:36:05 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x10012c6a0, p = 0x10012c6a4, pEnd = 0x10012c6a8)
5/26/12 8:36:05 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] SystemFlippers: didn't consume all data for long ID 0 (pBase = 0x100110190, p = 0x100110194, pEnd = 0x100110198)
5/26/12 8:36:07 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
5/26/12 8:36:07 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] at java.lang.ClassLoader.defineClass1(Native Method)
5/26/12 8:36:07 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
5/26/12 8:36:07 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
5/26/12 8:36:07 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
5/26/12 8:36:07 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
5/26/12 8:36:07 AM [0x0-0x3a23a2].com.apple.JarLauncher[11802] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)


Getting the same "Bad version number in .class file" that cahavthra mentions.

Lost is running Java 1.6 on OS 10.6 and is just fine, but 1.5 on OS 10.4 and 10.5 is seeming problematic? Java 1.6 doesn't seem to be available for the older Mac systems, it looks like they've dropped support for Java on 10.5 and down.

I'm embarking on a full day road trip, so won't be checking back until late tonight. Let me know if there's any other data I can provide!
 

roippi

Developer
For the record I have zero idea why any builds before this were working on JREs <1.6. Fewyn's script builds the jars in a 1.6 JDK, and yet there was no cross-compilation problem without the -target flag. Ah well, mysteries of the java compiler.
 

laerjael

New member
Yep, the fix works great for my system as well! Java is indeed a very mysterious beast: thank you for sacrificing the correct chicken!
 
Top