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


Groups > comp.lang.java.gui > #1314 > unrolled thread

SWT without Eclipse?

Started byrobotiser@googlemail.com.remove-dii-this
First post2011-04-27 15:32 +0000
Last post2011-04-27 15:32 +0000
Articles 4 — 3 participants

Back to article view | Back to comp.lang.java.gui


Contents

  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

#1314 — SWT without Eclipse?

Fromrobotiser@googlemail.com.remove-dii-this
Date2011-04-27 15:32 +0000
SubjectSWT without Eclipse?
Message-ID<1175165731.964861.321940@y80g2000hsf.googlegroups.com>
  To: comp.lang.java.gui
Is it possible to program in SWT without using Eclipse? Can I just use
the command line java and javac?

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

[toc] | [next] | [standalone]


#1316

From"Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Date2011-04-27 15:32 +0000
Message-ID<1175169484.897236.280200@y66g2000hsf.googlegroups.com>
In reply to#1314
  To: comp.lang.java.gui
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.

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

[toc] | [prev] | [next] | [standalone]


#1323

From"Lionel van den Berg" <lionel.van.den.berg@THRWHITE.remove-dii-this>
Date2011-04-27 15:32 +0000
Message-ID<460c2848$1@dnews.tpgi.com.au>
In reply to#1314
  To: comp.lang.java.gui
robotiser@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.

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

[toc] | [prev] | [next] | [standalone]


#1326

Fromrobotiser@googlemail.com.remove-dii-this
Date2011-04-27 15:32 +0000
Message-ID<1175246964.858313.258310@o5g2000hsb.googlegroups.com>
In reply to#1323
  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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web