Hi, my first post here. I'm on OSX 10.5.8 and just installed the latest 1.6.0_20 java update for 10.5.8 via <http://muchsoft.com/java/macosxjavaversions.html>.
I also downloaded both the RouteconverterMac.zip and the Routeconverter.jar from your downloads page (so not the prereleases as I assume they are now older than the one on the downloads page).
I activated the the 1.6 JDK via the Java preferences.
In the terminal "java -version" gave
Code:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-9M3165)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
The .app doesn't run at all. I opened it from the command line to get stderr/stdout in the terminal with
Code:
open RouteConverter.app
and got
Code:
LSOpenFromURLSpec() failed with error -10810 for the file /Users/harryvanderwolf/Documents/Navigon/RouteConverter/RouteConverter.app
This normally means that the internal structure from the bundle is not correct.
Then I started the jar with
Code:
java -jar RouteConverter.jar
and got
Code:
java -jar RouteConverter.jar
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:676)
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:317)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
The jar works fine apart from the map screen.
It starts with an error "Can't open <blah blah> due to unknow file type" (note:translated back to english from dutch) for the source. This is due to the fact that the application somehow tries to open a folder instead of a file. This only happens when no gps file hasn't been opened. Once a gps file has been opened this error doesn't return.
And then I started the jar with
Code:
java -XstartOnFirstThread -jar RouteConverter.jar
which gave the following error
Code:
2010-05-27 19:00:09.576 java[16310:c0b] [Java CocoaComponent compatibility mode]: Enabled
2010-05-27 19:00:09.613 java[16310:c0b] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at slash.navigation.gui.Application.invokeNativeInterfaceMethod(Application.java:85)
at slash.navigation.gui.Application.openNativeInterface(Application.java:94)
at slash.navigation.gui.Application.launch(Application.java:103)
at slash.navigation.converter.gui.RouteConverter6.main(RouteConverter6.java:48)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.eclipse.swt.graphics.Device.<clinit>(Unknown Source)
at chrriis.dj.nativeswing.swtimpl.NativeInterface$InProcess.initialize(NativeInterface.java:425)
at chrriis.dj.nativeswing.swtimpl.NativeInterface$InProcess.access$0(NativeInterface.java:424)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.initialize(NativeInterface.java:221)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.open(NativeInterface.java:239)
... 8 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at slash.navigation.gui.Application.invokeNativeInterfaceMethod(Application.java:85)
at slash.navigation.gui.Application.runNativeInterfaceEventPump(Application.java:98)
at slash.navigation.gui.Application.launch(Application.java:123)
at slash.navigation.converter.gui.RouteConverter6.main(RouteConverter6.java:48)
Caused by: java.lang.IllegalStateException: Cannot run the event pump when the interface is not initialized!
at chrriis.dj.nativeswing.swtimpl.NativeInterface.runEventPump(NativeInterface.java:378)
... 8 more
Logging to /var/folders/+R/+RmeG2o8EleS+UbdOPEbWE+++TI/-Tmp-/RouteConverter.log
Now this "-XstartOnFirstThread" is the worst option you can use. The jar hangs completely.
When using "java -XstartOnFirstThread -jar RouteConverter.jar" I can cill it by Ctrl-C from the command line. Whne using "java -XstartOnFirstThread -jar RouteConverter.jar &", which I normally do, I had to kill the process from the command line.
Do you have more options for me to test?
I built another mac bundle using Platypus (I'm the OSX bundle maintainer for Avidemux. I also use Platypus there), you can find it here: <http://panorama.dyndns.org/tmp/RouteConverter.app.zip/RouteConverter.app.zip>.
It needs some improvements and an icon but that's easy to fix.
I simply zipped it for your convenience. The normal way of distribution on OSX would be a .dmg.
Off course it only runs when java 6 is on your system.