• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NetBeans & SWT

 
Cecil Phillip
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how to incorporate SWT development into the netbeans IDE .... ?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic