Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT Build Error


Hi Aparup,

The linux problem is that the openmotif libraries that are shipped with swt & eclipse aren't being found.  You need to add the path containing libXm.so.2 to your LD_LIBRARY_PATH.  If you're using eclipse then this will be the eclipse root directory; if you're using swt stand-alone then this will be the directory that swt was unzipped into.

Your Solaris problem is that the Xprint library isn't being found on your machine.  I've replicated it here, and it's a problem with our library which will be fixed very soon.  In the meantime you can work around it by adding /usr/openwin/lib to your LD_LIBRARY_PATH.

Grant




Aparup Banerjee <Aparup.Banerjee@xxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

10/14/2003 05:14 AM
Please respond to platform-swt-dev

       
        To:        platform-swt-dev@xxxxxxxxxxx
        cc:        
        Subject:        [platform-swt-dev] SWT Build Error



Hi,

I am getting a typical stack trace if try yo execute any program using
SWT Stream Stable Build 3.0M4.
This occurs only in Linux and Solaris on Motif.
The stack trace which i get is:
Solaris Error:
--------------
libswt-motif-3024.so: ld.so.1: java: fatal: libXp.so.1: open failed: No
such file or directory
       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
       at java.lang.System.loadLibrary(System.java:832)
       at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
       at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
       at org.eclipse.swt.widgets.Display.createDisplay(Display.java:614)
       at org.eclipse.swt.widgets.Display.create(Display.java:600)
       at org.eclipse.swt.graphics.Device.<init>(Device.java:126)
       at org.eclipse.swt.widgets.Display.<init>(Display.java:350)
       at org.eclipse.swt.widgets.Display.<init>(Display.java:347)
       at SWTGui.main(SWTGui.java:25)
     
     

Linux Error:
------      
     
libswt-motif-3024.so: libXm.so.2: cannot open shared object file: No
such file or directory
       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
       at java.lang.System.loadLibrary(System.java:832)
       at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
       at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
       at org.eclipse.swt.widgets.Display.createDisplay(Display.java:614)
       at org.eclipse.swt.widgets.Display.create(Display.java:600)
       at org.eclipse.swt.graphics.Device.<init>(Device.java:126)
       at org.eclipse.swt.widgets.Display.<init>(Display.java:350)
       at org.eclipse.swt.widgets.Display.<init>(Display.java:347)
       at SWTGui.main(SWTGui.java:25)


Not sure if i have got a corrupted download, but i replaced my binaries
thrice to check this.

Any help/ advise??

Thanks
Aparup    

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top