Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] RE: Develop app with SWT for linux & windows

Thanks for responding.  But I'm using SWT 3.3 and according to
milestone 4, http://www.eclipse.org/swt/R3_3/new_and_noteworthy.html,
the swt libraries are supposed to be found automatically and I
shouldn't have to mess with the library path.  That is where I'm
having my problems.

On 7/12/07, Otto Teixeira <ottoptr@xxxxxxxxx> wrote:
You have to configure the java.library.class variable.
Please, check this link:
http://www.eclipse.org/swt/eclipse.php

2007/6/21, mattrawding < mdr36@xxxxxxxxxxx>:
>
> Can you very explicitly state what is in your class path? and is it
different
> for linux and windows? Or can someone else help? I'm in a very similar
> situation as you and no matter what i do, i get:
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-pi-gtk-3345 or swt-pi-gtk in swt.library.path, java.library.path or
the
> jar file
> on linux.  I have the following files in my classpath on linux
> org.eclipse.swt_3.3.0.v3345g.jar
> org.eclipse.swt.gtk.linux.x86_3.3.0.v3345f.jar
>
> I can actually see a file " libswt-pi-gtk-3345.so" inside the 2nd jar file
> listed above.
>
> please help!
> Thanks
>
>
> Mikael Petterson (KI/EAB) wrote:
> >
> > Thanks,
> >
> > Now it works like a charm to develop.
> >
> > Anyone with an ant xml for deploying SWT apps. for both win and linux (
> > also considering solaris)?
> >
> > cheers,
> >
> > //mikael
> >
> > ________________________________
> >
> > From: platform-swt-dev-bounces@xxxxxxxxxxx
> > [mailto:platform-swt-dev-bounces@xxxxxxxxxxx ] On
Behalf Of Steve
> > Northover
> > Sent: den 19 juni 2007 15:59
> > To: Eclipse Platform SWT component developers list.
> > Subject: RE: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> >
> >
> > You need all of them (the 3.3. ones).
> >
> >
> >
> >
> > "Mikael Petterson (KI/EAB)" <mikael.petterson@xxxxxxxxxxxx >
> > Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
> >
> > 06/19/2007 09:47 AM
> > Please respond to
> > "Eclipse Platform SWT component developers list."
> > <platform-swt-dev@xxxxxxxxxxx>
> >
> >
> > To
> > "Eclipse Platform SWT component developers list."
> > < platform-swt-dev@xxxxxxxxxxx>
> > cc
> > Subject
> > RE: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> >
> >
> >
> >
> >
> > So that is the only jar that I need in the classpath?
> >
> > cheers,
> >
> > //mikael
> >
> >
> > ________________________________
> >
> > From: platform-swt-dev-bounces@xxxxxxxxxxx
> > [mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf
Of Steve
> > Northover
> > Sent: den 19 juni 2007 15:42
> > To: Eclipse Platform SWT component developers list.
> > Subject: RE: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> >
> > You need to be running
org.eclipse.swt_3.3.0.v3345g.jar, not the 3.2.2
> > one.
> >
> >
> >
> > "Mikael Petterson (KI/EAB)" <mikael.petterson@xxxxxxxxxxxx>
> > Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
> >
> > 06/19/2007 06:57 AM
> >
> > Please respond to
> > "Eclipse Platform SWT component developers list."
> > <platform-swt-dev@xxxxxxxxxxx >
> >
> >
> >
> > To
> > "Eclipse Platform SWT component developers list."
> > <platform-swt-dev@xxxxxxxxxxx>
> > cc
> > Subject
> > RE: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > I have imported Subversion project into Eclipse 3.3-Rc4. No problem.
> > I see the following jar related to swt:
> >
> > org.eclipse.swt_3.3.0.v3345g.jar
> > org.eclipse.swt.gtk.linux.x86_3.3.0.v3345f.jar
> > In my classpath I already have the following swt's:
> >
> > org.eclipse.swt.win32.win32.x86_3.2.2.v3236.jar
> > org.eclipse.swt_3.2.2.v3236b.jar
> >
> > My question is now what to do with the linux jars? Since if I try to run
> > my recently imported project main class on linux I get:
> >
> > Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> > swt-win32-3236 in java.library.path
> > at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
> > at java.lang.Runtime.loadLibrary0 (Runtime.java:822)
> > at java.lang.System.loadLibrary(System.java:992)
> > at
org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
> > at
org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
> > at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
> > at
> >
net.sourceforge.josmail.server.main.JosMailGui.main(JosMailGui.java:187)
> >
> >
> > cheers,
> >
> > //mikael
> >
> >
> >
> >
> >
> >
> >
> >
> > ________________________________
> >
> > From: platform-swt-dev-bounces@xxxxxxxxxxx
> > [mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf
Of Mikael
> > Petterson (KI/EAB)
> > Sent: den 19 juni 2007 09:46
> > To: Eclipse Platform SWT component developers list.
> > Subject: RE: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> > Thanks,
> >
> > //mikael
> >
> >
> > ________________________________
> >
> > From: platform-swt-dev-bounces@xxxxxxxxxxx
> > [mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf
Of Dennis Meyer
> > Sent: den 19 juni 2007 09:44
> > To: Eclipse Platform SWT component developers list.
> > Subject: Re: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> > http://download.eclipse.org/eclipse/downloads/
> > < http://download.eclipse.org/eclipse/downloads/>
> > (use "all versions" on download page)
> >
> > Dennis
> >
> > Am 19.06.2007 um 09:16 schrieb Mikael Petterson (KI/EAB):
> >
> > Hi,
> >
> > Where can I download Eclipse 3.3?
> >
> > cheers,
> >
> > //mikael
> >
> >
> > ________________________________
> >
> > From: platform-swt-dev-bounces@xxxxxxxxxxx
> > [mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf
Of Steve
> > Northover
> > Sent: den 18 juni 2007 20:52
> > To: Eclipse Platform SWT component developers list.
> > Subject: RE: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> >
> > 1) 'Run as SWT Application' is gone for Eclipse 3.3
> > 2) As of SWT 3.3, so is java.library.path
> >
> > If you use the stand alone jars from eclipse.org/swt, it should all just
> > work for you.
> >
> >
> > "Mikael Petterson (KI/EAB)" <mikael.petterson@xxxxxxxxxxxx>
> > Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
> >
> > 06/18/2007 02:33 PM
> >
> > Please respond to
> > "Eclipse Platform SWT component developers list."
> > <platform-swt-dev@xxxxxxxxxxx >
> >
> >
> >
> >
> > To
> > "David Whiteman" <dlwhiteman@xxxxxxxxxxxxxxx>, "Eclipse Platform SWT
> > component developers list." < platform-swt-dev@xxxxxxxxxxx>
> > cc
> > Subject
> > RE: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > Thanks for your quick reply David.
> >
> > I am satisfied with the deployment answer. However we are a number of
> > developers using both linux and windows to develop the app. It seems
> > like a problem to develop the app with SWT. I want to code and the
> > run/debug and code and run/debug. It is not possible? Or did I miss
> > something?
> >
> > I have tried  ( if you mean import using e.g. Subversion):
> >
> > you could have someone load your project from the repository in an
> > Eclipse workspace on Linux, and test from within Eclipse.
> >
> > But I get the following complaint:
> >
> > Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> > swt-pi-gtk-3235 in java.library.path
> >               at
> >
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
> >               at java.lang.Runtime.loadLibrary0(Runtime.java:822)
> >               at java.lang.System.loadLibrary(System.java:993)
> >               at
> >
org.eclipse.swt.internal.Library.loadLibrary(Library.java
:123)
> >               at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
> >
> > When I Run As SWT Application.
> >
> > Have I missed something.
> >
> > Cheers,
> >
> > //mikael
> >
> > -----Original Message-----
> > From: platform-swt-dev-bounces@xxxxxxxxxxx
> > [mailto: platform-swt-dev-bounces@xxxxxxxxxxx] On
Behalf Of David
> > Whiteman
> > Sent: den 18 juni 2007 20:14
> > To: Eclipse Platform SWT component developers list.
> > Subject: Re: [platform-swt-dev] Develop app with SWT for linux & windows
> >
> > Monday, June 18, 2007, 1:28:50 PM, Mikael Petterson (KI/EAB) wrote:
> >
> >> - How can we develop the appl for both Linux and Windows within the
> >> same Eclipse project. (At the moment we use Win. )
> >
> > Your app (minus SWT) should be binary portable.  You could develop &
> > test on Windows, and then periodically either export the app and copy it
> > along with the SWT jar and library to the Linux platform to test, or you
> > could have someone load your project from the repository in an Eclipse
> > workspace on Linux, and test from within Eclipse.
> >
> >> - How can we deploy the standalone application? Will it be one win-
> >> and one linux-jar? What part of swt do we need to include?
> >
> > Your installer will need to include both the SWT jar and the .dll/.so
> > file for that particular platform.  There are cross platform installer
> > tools like InstallAnywhere that help you manage multiple platforms with
> > different file needs.  Or a simpler approach would be a custom Ant build
> > script that creates two different zip files, one each for Windows and
> > Linux, that contain the appropriate files for that platform.
> >
> > --
> > Hope this helps,
> > David
> > mailto:dlwhiteman@xxxxxxxxxxxxxxx
> > news://news.eclipse.org/eclipse.platform.swt
> >
http://www.eclipse.org/newsportal/thread.php?group=eclipse.platform.swt
> >
> >
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >
> >
> >
> > _______________________________________________
> > platform-swt-dev mailing list
> > platform-swt-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/Develop-app-with-SWT-for-linux---windows-tf3941744.html#a11220326
> Sent from the Eclipse Platform - swt mailing list archive at Nabble.com.
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>


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




Back to the top