RouteConverter Forum
Web start fails to launch on Mac OS X 10.5.8 - Printable Version

+- RouteConverter Forum (https://forum.routeconverter.com)
+-- Forum: Users (https://forum.routeconverter.com/forum-17.html)
+--- Forum: English: Discussions (https://forum.routeconverter.com/forum-12.html)
+--- Thread: Web start fails to launch on Mac OS X 10.5.8 (/thread-551.html)



Web start fails to launch on Mac OS X 10.5.8 - Austin - 17.01.2010

Hello Folks,

First attempts to launch via web start fail with the following stack trace. Yup, I'm running java 1.6. Looks like it's missing a widget from Eclipse. I'm a java developer with Eclipse installed. I wonder if that is the problem or more likely a required jar file didn't make it into the jnlp?

Any help would be appreciated. I'm psyched to help out with developing this project.

-cheers, Austin

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 com.sun.javaws.Launcher.executeApplication(Launcher.java:1528)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1466)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1277)
at com.sun.javaws.Launcher.run(Launcher.java:117)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at slash.navigation.gui.Application.invokeNativeInterfaceMethod(Application.java:84)
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)
... 9 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:257)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
... 17 more


RE: Web start fails to launch on Mac OS X 10.5.8 - routeconverter - 17.01.2010

(17.01.2010, 00:34)Austin Wrote: First attempts to launch via web start fail with the following stack trace. Yup, I'm running java 1.6. Looks like it's missing a widget from Eclipse.

Hi Austin,

is it possible that Eclipse SWT classes from your system installation interfere with those from the RouteConverterMac.jar? Probably different versions?

org.eclipse.swt.widgets.Display at least is part of the webstart/cocoa.macosx-3.5.jar....

From the JNLP file:

<resources os="MacOS" arch="x86">
<jar href="webstart/cocoa.macosx-3.5.jar"/>
<jar href="webstart/mac.os_x.x86-1.3.6.jar"/>
<jar href="webstart/jna-3.0.7-stripped.jar"/>
<jar href="webstart/mac.os_x.x86-3.0.7.jar"/>
</resources>

(17.01.2010, 00:34)Austin Wrote: I'm a java developer with Eclipse installed. I wonder if that is the problem or more likely a required jar file didn't make it into the jnlp?

Any help would be appreciated. I'm psyched to help out with developing this project.

That is good news. Did you already check out the source?