Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Running SWT on UNIX
Running SWT on UNIX [message #466955] Thu, 19 January 2006 22:03 Go to next message
Me is currently offline MeFriend
Messages: 5
Registered: July 2009
Junior Member
I was wondering if any one has tried running SWT on UNIX? I have tried to
no avail. I have brought over the swt.jar and did a javac -classpath
///swt.jar GUI.java, even putting the jar in my project folder and setting
the classpath. But I keep getting a can not resolve symbol? I am new to
SWT and I do not want to use Swiing, any help would be greatly
appreciated! has any one successfully ran SWT on UNIX??
Thanks in advance
Re: Running SWT on UNIX [message #466956 is a reply to message #466955] Fri, 20 January 2006 00:59 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Me wrote:

> I was wondering if any one has tried running SWT on UNIX? I have tried to
> no avail. I have brought over the swt.jar and did a javac -classpath
> ///swt.jar GUI.java, even putting the jar in my project folder and setting
> the classpath. But I keep getting a can not resolve symbol? I am new to
> SWT and I do not want to use Swiing, any help would be greatly
> appreciated! has any one successfully ran SWT on UNIX??
> Thanks in advance
make java project and run class with main like SWT Application
it work fine on linux/gtk
Re: Running SWT on UNIX [message #466959 is a reply to message #466956] Fri, 20 January 2006 02:36 Go to previous messageGo to next message
Me is currently offline MeFriend
Messages: 5
Registered: July 2009
Junior Member
I am not running Eclipse on UNIX, I wanted to run the 3 classes stand
alone. But to no avail. One classes utilizes SWT, and I can not get it
working. Is the SWT jar file all you need to run the GUI's on UNIX????
thanks so much, dieing here.
Re: Running SWT on UNIX [message #466963 is a reply to message #466959] Fri, 20 January 2006 07:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: davidyoung_2001.yahoo.co.uk

what favor of UNIX are you using?
Re: Running SWT on UNIX [message #466965 is a reply to message #466959] Fri, 20 January 2006 13:16 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Me wrote:

> I am not running Eclipse on UNIX, I wanted to run the 3 classes stand
> alone. But to no avail. One classes utilizes SWT, and I can not get it
> working. Is the SWT jar file all you need to run the GUI's on UNIX????
> thanks so much, dieing here.
you need native libraries for unix (gtk or motif) and swt libraries for your
platform
see swt faq on eclipse.org/swt
Re: Running SWT on UNIX [message #466966 is a reply to message #466955] Fri, 20 January 2006 13:56 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You need to download the SWT SDK, which contains both the swt.jar file
and the shared libraries appropriate for your platform.

Then go to http://www.eclipse.org/swt/faq.php for tips on launching an
SWT app from the command line (including -Djava.library.path, etc)

Later,
PW


Re: Running SWT on UNIX [message #466974 is a reply to message #466959] Fri, 20 January 2006 14:53 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
SWT requires one or more swt jars (prior to 3.1, for some platforms there is
more than one jar) plus one or more swt C libraries. You must get the
correct jars and libraries for the platform you are running on.

Get the SWT Binary and Source download for your platform (e.g. Solaris GTK):

http://download.eclipse.org/eclipse/downloads/drops/S-3.2M4- 200512151506/index.php#swt

Put all the jars on the classpath and put the C libraries on the
java.library.path. e.g.:

/users/me./jdk1.5.0_02/bin/java -Djava.library.path=/users/me/swt/ -classpath
/users/me/swt/swt.jar:/users/me/myApp/myApp.jar MyApp


"Me" <DerrickHaller@gmail.com> wrote in message
news:cdcb7c04e607ce8392c9a17050f39dcb$1@www.eclipse.org...
>I am not running Eclipse on UNIX, I wanted to run the 3 classes stand
>alone. But to no avail. One classes utilizes SWT, and I can not get it
>working. Is the SWT jar file all you need to run the GUI's on UNIX????
> thanks so much, dieing here.
>
Re:- I am currently running on Solaris 5.8 [message #466976 is a reply to message #466955] Fri, 20 January 2006 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: DerrickHaller.gmail.com

I see versions for 8.0. I assume it is backward compatible for Sun
versions such as 5.8? I assume I must use the Motif version to have SWT
run correctly. I just hope it is backward compatible, so I do not waste
time installing SWT.
Thanks so much every one!!
Re: - I am currently running on Solaris 5.8 [message #467013 is a reply to message #466976] Sun, 22 January 2006 06:06 Go to previous message
Billy Biggs is currently offline Billy BiggsFriend
Messages: 94
Registered: July 2009
Member
Me - AGAIN wrote:
> I see versions for 8.0. I assume it is backward compatible for Sun
> versions such as 5.8?

SunOS 5.8 is branded as Solaris 8.

I assume I must use the Motif version to have SWT
> run correctly. I just hope it is backward compatible, so I do not waste
> time installing SWT.

Solaris 8 did not ship with GTK+, you should use the Motif version.

-Billy
Previous Topic:Any widget like JTextPane
Next Topic:SWT.FULL_SELECTION style, bug?
Goto Forum:
  


Current Time: Sun Dec 08 22:06:31 GMT 2024

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

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

Back to the top