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.
> 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.