Skip to main content


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 18:27 Go to next message
Eric Frederich is currently offline Eric FrederichFriend
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 15:35 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
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 15:38 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
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: Thu Apr 18 12:24:17 GMT 2024

Powered by FUDForum. Page generated in 0.02014 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top