Re: SWT without Eclipse?
- From: "robotiser@xxxxxxxxxxxxxx" <robotiser@xxxxxxxxxxxxxx>
- Date: 30 Mar 2007 02:29:24 -0700
On Mar 29, 9:59 pm, Lionel van den Berg <lione...@xxxxxxxxx> wrote:
roboti...@xxxxxxxxxxxxxx wrote:
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.
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.
.
- References:
- SWT without Eclipse?
- From: robotiser@xxxxxxxxxxxxxx
- Re: SWT without Eclipse?
- From: Lionel van den Berg
- SWT without Eclipse?
- Prev by Date: Re: Horizontally scrolling JTable
- Next by Date: Re: Horizontally scrolling JTable
- Previous by thread: Re: SWT without Eclipse?
- Next by thread: Making color image with transparency into black & white w/transparency
- Index(es):
Relevant Pages
|