Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Running a java program from Plugin Application
Running a java program from Plugin Application [message #520158] Thu, 11 March 2010 11:55 Go to next message
walnut23  is currently offline walnut23 Friend
Messages: 23
Registered: March 2010
Junior Member
I have written a plugin application and i am trying to execute a java application from this plugin using
Runtime.getRuntime().exec( "java programname" );

But when i run the plugin i get a NoClassDefFound error. I have include the jar file of the called program in the plugin application.Am i missing something?

Please help me with this.

Re: Running a java program from Plugin Application [message #520161 is a reply to message #520158] Thu, 11 March 2010 12:09 Go to previous message
Rhodan76  is currently offline Rhodan76 Friend
Messages: 70
Registered: July 2009
Runtime.getRuntime().exec(...) doesn't know anything from the eclipse world, e.g. it does'nt know the class path entries of your plugin.xml.

You have to manually specify the classpath to the jar(s) and even mostly the path to a java runtime/jdk.
Previous Topic:Help on creating vertical scrollable menu - like the image attached
Next Topic:How can I get the path of the project
Goto Forum:

Current Time: Sun May 27 07:35:20 GMT 2018

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

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

Back to the top