dynamic classpath [message #261403] |
Wed, 14 July 2004 02:58 |
Eclipse User |
|
|
|
Originally posted by: t1.s-neubert.net
Hi,
I am learning the development of eclipse plugins using the book
"Contributing to eclipse" from Erich Gamma and Kent Beck. They write an
example action which should start junit in a separate virtual machine.
Therefor they need to compute the classpath like this:
-----------------------------------
String[] defaultPath = JavaRuntime.computeDefaultRuntimeClassPath(project);
-----------------------------------
But it seems to work only if I imported the org.junit plugin into my
workspace, because otherwise the junit.jar will not be present within the
defaultPath.
Can anybody tell me how to compute the classpath entry for a given plugin,
in my case for the org.junit plugin?
Kind Regards,
Tobias
|
|
|
Powered by
FUDForum. Page generated in 0.04705 seconds