aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes NetBeans & SWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "NetBeans & SWT" Watch "NetBeans & SWT" New topic
Author

NetBeans & SWT

Cecil Phillip
Ranch Hand

Joined: Nov 05, 2001
Posts: 40
Does anyone know how to incorporate SWT development into the netbeans IDE .... ?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
I've not tried to do so, but I'm sure it can be done.
You'd of course want to download the SWT libraries from eclipse.org/downloads. Note that the SWT only download is towards the bottom of the main download page.
Then, as instructed on the download page, you'll want to mount all of the SWT jars in your NetBeans project. The trickiest part will be adding the SWT JNI library to the java.library.path. Again, I've not tried to do so, but it's probably pretty easy to get it to work.
To run a standalone SWT application, add the swt jar(s) to the classpath and add the directory/folder for the SWT JNI library to the java.library.path. For example, if you extract the download below to C:\SWT you would launch the HelloWorld application with the following command:
java -classpath C:\SWT\swt.jar;C:\MyApp\helloworld.jar -Djava.library.path=C:\SWT HelloWorld

[ February 03, 2004: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Originally posted by Cecil Phillip:
Does anyone know how to incorporate SWT development into the netbeans IDE .... ?

If you wanting to utalize the GUI Builder in Netbeans to produce SWT Applications, I doubt this can be done.


GenRocket - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NetBeans & SWT
 
Similar Threads
Netbeans SWT
SWT - File pulldown menu
SWT/JFace and Sun
i18n
Is SWT compatible with AWT?