Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Java Webstart / SWT doens't work on Ubuntu LTS 12.04 ???
Java Webstart / SWT doens't work on Ubuntu LTS 12.04 ??? [message #872555] Wed, 16 May 2012 10:28 Go to next message
Eclipse UserFriend
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
Re: Java Webstart / SWT doens't work on Ubuntu LTS 12.04 ??? [message #872578 is a reply to message #872555] Wed, 16 May 2012 11:46 Go to previous message
Eclipse UserFriend
Hi,
I can start my application within Eclipse Indigo when the swt file (e.g.
swt-3.7-gtk-linux-x86.zip) is imported as a project into workspace. The
question is really why webstart doesn't load the file
(swt-gtk-linux-x86.jar) from server. Seems to be a Java problem, not an
eclipse/swt problem.

Thomas B
Previous Topic:Trouble running code on Windows
Next Topic:SWT COM on X64
Goto Forum:
  


Current Time: Thu Apr 25 07:56:27 GMT 2024

Powered by FUDForum. Page generated in 0.02777 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top