Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1326

Re: SWT without Eclipse?

From robotiser@googlemail.com.remove-dii-this
Subject Re: SWT without Eclipse?
Message-ID <1175246964.858313.258310@o5g2000hsb.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <460c2848$1@dnews.tpgi.com.au>
Date 2011-04-27 15:32 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Mar 29, 9:59 pm, Lionel van den Berg <lione...@gmail.com> wrote:
> roboti...@googlemail.com 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.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

SWT without Eclipse? robotiser@googlemail.com.remove-dii-this - 2011-04-27 15:32 +0000
  Re: SWT without Eclipse? "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
  Re: SWT without Eclipse? "Lionel van den Berg" <lionel.van.den.berg@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
    Re: SWT without Eclipse? robotiser@googlemail.com.remove-dii-this - 2011-04-27 15:32 +0000

csiph-web