Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Launch standalone app outside of eclipse
Launch standalone app outside of eclipse [message #821715] Thu, 15 March 2012 14:27 Go to next message
Eric Frederich is currently offline Eric Frederich
Messages: 3
Registered: March 2012
Junior Member
Hello,

I created a standalone application in eclipse that I'd now like to run outside of eclipse. I exported the project to a .jar file but am having problems launching it.

I used eclipse's classpath variables located in...
Window->Preferences->Java->Build Path->Classpath Variables

I set a variable SWT_HOME to /usr/lib64/eclipse

Then under the java build path for the project I clicked add variable, selected SWT_HOME and then selected swt-gtk-3.2.jar

How should I now run my project from the command line using the exported .jar file? Where do I set SWT_HOME?
Re: Launch standalone app outside of eclipse [message #826048 is a reply to message #821715] Wed, 21 March 2012 11:35 Go to previous messageGo to next message
Wim Jongman is currently offline Wim Jongman
Messages: 276
Registered: July 2009
Senior Member

Hi Eric,

Something like this:

java -Djava.library.path="." -cp "swt.jar" com.remainsoftware.OMRegExDialog

hth

Wim
Re: Launch standalone app outside of eclipse [message #826049 is a reply to message #826048] Wed, 21 March 2012 11:38 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 276
Registered: July 2009
Senior Member

forgot the punctuation

java -cp swt.jar; name.package.Class
Previous Topic:getToolBar() creates a gap below the toolbar on Mac OSX
Next Topic:segmentation fault indigo SR2 with glassfish 3.1.2 plugin
Goto Forum:
  


Current Time: Fri Aug 29 18:26:59 EDT 2014

Powered by FUDForum. Page generated in 0.01647 seconds