Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » How to reference tools.jar from SDK when I was able to find the path only to JRE that doesn't have t
How to reference tools.jar from SDK when I was able to find the path only to JRE that doesn't have t [message #596023] Fri, 21 November 2003 08:30
Eclipse UserFriend
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
Previous Topic:How to reference tools.jar from SDK when I was able to find the path only to JRE that doesn't have t
Next Topic:XSWT status?
Goto Forum:
  


Current Time: Thu Mar 28 11:49:57 GMT 2024

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

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

Back to the top