Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Java Web Start SWT for Linux GNOME, KDE and Motif - howto
Java Web Start SWT for Linux GNOME, KDE and Motif - howto [message #585219] Tue, 29 October 2002 21:13
Ã?yvind Harboe is currently offline Ã?yvind HarboeFriend
Messages: 11
Registered: July 2009
Junior Member
How do I write the JNLP entries to have Java Web Start load SWT under
Linux for GNOME, KDE and Motif?

Are any changes required to my program as well?

Mostly on the net I've found instructions on how to modify the Linux
installation to have the libraries installed as part of the OS, but I'd
like to have the same click and run convenience that Swing offers.

My Linux skills are feeble, hence I'm fumbling in the dark here. (I'm a
recent Windows programmer converted to Java trying to support SWT under
Windows, Linux and Solaris under Java Web Start.)

Here is what I have so far in my JNLP file and Java code:

linux_swt.jar - the swt.jar library renamed and signed by me.
linux_swt_lib.jar - all the native binaries for SWT 2049 jarred together
and signed by me:

libswt-gnome-motif-2049.so
libswt-kde-motif-2049.so
libswt-motif-2049.so
libXm.so - wierd, it is a couple of bytes, contains "libXm.so.2.1"
libXm.so.2 - wierd, it is a couple of bytes, contains "libXm.so.2.1"
libXm.so.2.1

My program executes the following lines when running under Linux:

System.loadLibrary("Xm");
System.loadLibrary("swt-gnome-motif-2049");
System.loadLibrary("swt-kde-motif-2049");
System.loadLibrary("swt-motif-2049");

From my JNLP file:

<resources os="Linux" arch="i386">
<jar href="linux_swt.jar"/>
<nativelib href="linux_swt_lib.jar"/>
</resources>
<resources os="Windows" arch="x86">
<jar href="windows_swt.jar"/>
<nativelib href="windows_swt_lib.jar"/>
</resources>


Øyvind
Previous Topic:Java Web Start SWT for Linux GNOME, KDE and Motif - howto
Next Topic:How can I include Projects in Classpath of my custom tool?
Goto Forum:
  


Current Time: Mon Apr 22 23:44:46 GMT 2024

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

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

Back to the top