Java Webstart / SWT doens't work on Ubuntu LTS 12.04 ??? [message #872555] |
Wed, 16 May 2012 10:28 |
Eclipse User |
|
|
|
Hi,
I ve installed Ubuntu LTS 12 (32 bit) and Oracle Java 7 JDK
(jdk-7u4-linux-i586.tar.gz) on my pc. Than I tried to start my Java SWT
application with Webstart and get an exception:
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
at java.lang.Class.getMethod0(Class.java:2685)
at java.lang.Class.getMethod(Class.java:1620)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Display
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Java Webstart doesnt load the Java archive file although they re defined
in the jnlp file correctly.
The swt archive are defined in the jnlp file
<resources os="Windows" arch="amd64">
<jar href="/swt-win32-windows-x86_64.jar" />
</resources>
<resources os="Windows" arch="x86_64">
<jar href="/swt-win32-windows-x86_64.jar" />
</resources>
<resources os="Windows" arch="x86">
<jar href="/swt-win32-windows-x86.jar" />
</resources>
<resources os="Linux" arch="x86_64">
<jar href="/swt-gtk-linux-x86_64.jar" />
</resources>
<resources os="Linux" arch="amd64">
<jar href="swt-gtk-linux-x86_64.jar" />
</resources>
<resources os="Linux">
<jar href="swt-gtk-linux-x86.jar" />
</resources>
The application can still be started on a windows system (32/64 bit)
with same Oracle Java 7. Any idea what is going wrong? Do you think it
has something to do with the new Unity UI?
Thomas B
|
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds