Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2007

Tip: Looking for answers? Try searching our database.

SWT without Eclipse?

Thread view: 
robotiser@googlemail.com - 29 Mar 2007 11:55 GMT
Is it possible to program in SWT without using Eclipse? Can I just use
the command line java and javac?
Andrew Thompson - 29 Mar 2007 12:58 GMT
On Mar 29, 8:55 pm, "roboti...@googlemail.com"
<roboti...@googlemail.com> wrote:
> Is it possible to program in SWT without using Eclipse?

Yes (I am not that familiar with SWT, but
as a general rule, it is sure possible).

>..Can I just use the command line java and javac?

I don't know.  Can you?  ;-)

To compile/run SWT based projects in other
environments, simply ensure the SWT classes
are on the classpath.

Andrew T.
Lionel van den Berg - 29 Mar 2007 21:59 GMT
> Is it possible to program in SWT without using Eclipse? Can I just use
> the command line java and javac?

As Andrew said, it is possible. I programmed SWT in Netbeans. I came
across a few problems along the way but most of the answers you will
find on the Eclipse sight.

Lionel.
robotiser@googlemail.com - 30 Mar 2007 10:29 GMT
> roboti...@googlemail.com wrote:
> > Is it possible to program in SWT without using Eclipse? Can I just use
[quoted text clipped - 5 lines]
>
> Lionel.

OK, I hunted around, and from here and from there I seem to have found
the answer.

First, the zip file with the Java and native libraries can be
donwloaded from: http://www.eclipse.org/swt/

I downloaded, and unzipped.

Given that I had the extracted binaries in the directory swt-
M20070112-1330-gtk-linux-x86, I compile and run with the following
commands:

javac -classpath "swt-M20070212-1330-gtk-linux-x86/swt.jar:."
TestSWT.java
java -classpath "swt-M20070212-1330-gtk-linux-x86/swt.jar:." -
Djava.library.path=swt-M20070212-1330-gtk-linux-x86 TestSWT

and I get a "hello world" GUI window appear on my screen. Job done.
Maybe.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.