How to reference tools.jar from SDK when I was able to find the path only to JRE that doesn't have t [message #59866] |
Fri, 21 November 2003 03:30 |
Eclipse User |
|
|
|
Originally posted by: dimichsdg.sbcglobal.net
Hi guys,
I have a small problem that I was trying to solve.
I have a plugin that runs some external java process that I should provide
classpath with necessary jars to.
I was able to find pathes to JRE libraries by using this logic
IVMInstall jre = JavaRuntime.getDefaultVMInstall();
File jdkHome = jre.getInstallLocation();
IPath toolsPath = new Path(jdkHome.getAbsolutePath())
..append("lib")
..append("rt.jar");
The problem is I need to get use of javac class that is in tools.jar of Java
SDK.
I couldn't find any way to get the home path to SDK while Eclipse seems to
be using both JRE and SDK
while they are in the different locations.
Does anyone know hot to get to SDK home path?
I used workaround by placing tools.jar as a helpful plugin, but this doesn't
look right.
Thanks,
Dmytro
|
|
|
Powered by
FUDForum. Page generated in 0.06383 seconds