Skip to main content


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 11:50 Go to next message
narender reddy is currently offline narender reddyFriend
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 13:21 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
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: Thu Mar 28 17:31:30 GMT 2024

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

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

Back to the top