Skip to main content



      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 06:55 Go to next message
Eclipse UserFriend
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.
Thanks!

Re: Running a java program from Plugin Application [message #520161 is a reply to message #520158] Thu, 11 March 2010 07:09 Go to previous message
Eclipse UserFriend
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: Thu Jun 12 09:49:32 EDT 2025

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

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

Back to the top