Re: SWT without Eclipse?



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.

.



Relevant Pages

  • Re: A constructive debate: Eclipse or NetBeans?
    ... In my experience Netbeans is slower than is Eclipse, ... That's because most people never learn to use a command line or a simple ... facilities of a well designed IDE are invaluable. ... I started by trying to find OpenGL bindings for Java but, amazingly, ...
    (comp.lang.java.softwaretools)
  • Re: A constructive debate: Eclipse or NetBeans?
    ... that Linux and command-line driven languages like OCaml are so much more ... That's because most people never learn to use a command line or a simple ... Trying to run other people's OpenGL-based Java demos from the web I find ... OpenGL). ...
    (comp.lang.java.softwaretools)
  • Re: NetBeans v. SDK
    ... >> As far as I know I've no directories mounted in NetBeans. ... >> At command line, I'm running Javac and Java in that same directory. ... I've got classpath set to .;the directory the java sdk is ...
    (comp.lang.java.programmer)
  • Process.waitFor() returns, but threads reading output/error streams are blocked on read
    ... threads to read in the out/err streams, ... i'll include the java source below, but the problem seems extremely specific ... passed in on the command line). ... process is hung if i terminate the process the command line tool connects to ...
    (comp.lang.java.programmer)
  • Re: Timed wait fails under WebStart in Java 1.6 prerelease?
    ... the java command line. ... that I show you the jnlp specs for the configuration which does not run: ... java.specification.vendor: <Sun Microsystems Inc.> ...
    (comp.lang.java.programmer)