Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » replcae default jre
replcae default jre [message #919832] Sat, 22 September 2012 07:50 Go to next message
narender reddy is currently offline narender reddy
Messages: 7
Registered: July 2012
Junior Member

Can anyone give me some points on how to programmatically add a new JRE to
the Workspace and how to query the available ones?
Re: replcae default jre [message #920809 is a reply to message #919832] Sun, 23 September 2012 09:21 Go to previous message
Stephan Herrmann is currently offline Stephan Herrmann
Messages: 975
Registered: July 2009
Senior Member
I see two paths for finding the desired API:
- open the "Installed JREs" preference page and ask the plug-in spy (Alt-Shift-F1) for the implementing classes. This will let you inspect how the UI access the set of installed JREs
- browse the code starting from class JavaRuntime (inside plug-in org.eclipse.jdt.launching), it should have references to all relevant API:
Quote:
The central access point for launching support. This class manages the registered VM types contributed through the <code>"org.eclipse.jdt.launching.vmType"</code> extension point..


HTH,
Stephan
Previous Topic:1.4.2 JDK on Mac?
Next Topic:Trying to convert from IMethod to MethodDeclaration: findDeclaringNode always returns null
Goto Forum:
  


Current Time: Tue Jul 22 11:40:35 EDT 2014

Powered by FUDForum. Page generated in 0.01452 seconds