Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Customize installed JREs
Customize installed JREs [message #244316] Thu, 07 June 2007 10:03 Go to next message
Maarten Coene is currently offline Maarten CoeneFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

we have several JDKs installed on our system.

It would be great if these JDKs were added automatically to the installed
JREs when a new workspace is created. We already start Eclipse with the
"-pluginCustomization" option to configure other settings, but I didn't
find a way to configure the default installed JREs.

Does someone has an idea how to accomplish this?

regards,
Maarten Coene
Re: Customize installed JREs [message #244507 is a reply to message #244316] Wed, 13 June 2007 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Marteen,
looks like there is an extension point doing this -
org.eclipse.jdt.launching.vmInstalls.

All you would have to do is create a new Plug-in project - in the editor
that opens immediately, after creating it,
go to Dependencies tab, add org.eclipse.jdt.launching, and save the file.
Then in the Extensions tab, add org.eclipse.jdt.launching.vmInstalls
extension and right clicking on it, add new vmInstalls and set
paths to them.

Then export your plugin (in Overview tab) to jar and deliver it together
with whole Eclipse, in plugins/ folder.

Maarten Coene wrote:
> Hi,
>
> we have several JDKs installed on our system.
>
> It would be great if these JDKs were added automatically to the
> installed JREs when a new workspace is created. We already start
> Eclipse with the "-pluginCustomization" option to configure other
> settings, but I didn't find a way to configure the default installed
> JREs.
>
> Does someone has an idea how to accomplish this?
>
> regards,
> Maarten Coene
>
Re: Customize installed JREs [message #1140187 is a reply to message #244507] Wed, 16 October 2013 07:29 Go to previous message
Stefan Cordes is currently offline Stefan CordesFriend
Messages: 1
Registered: July 2009
Junior Member
Resulting plugin.xml may look like:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
	<extension point="org.eclipse.jdt.launching.vmInstalls">
		<vmInstall home="${eclipse_home}/jdk6/" id="AddRscWorkspaceVMs.jdk6" name="jdk6"
			vmInstallType="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">

		</vmInstall>
		<vmInstall home="${eclipse_home}/jdk7/" id="AddRscWorkspaceVMs.jdk7" name="jdk7"
			vmInstallType="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">
		</vmInstall>
		<vmInstall home="C:/Program Files (x86)/RscApplications/JreEnv/ventura/was/thinClient/java/" id="AddRscWorkspaceVMs.ventura"
			name="ventura" vmInstallType="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">
		</vmInstall>
	</extension>
</plugin>


with following manifest.mf
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: AddRscWorkspaceVMs
Bundle-SymbolicName: build-eclipse-standard-version-config-plugin;singleton:=true
Bundle-Version: 1.0.0
Require-Bundle: org.eclipse.jdt.launching,
 org.eclipse.jdt.core,
 org.eclipse.jdt
Bundle-RequiredExecutionEnvironment: JavaSE-1.6


Export as plugin and add it to your eclipse/dropins folder and you will receive pre-installed java-vms which appear as "(locked)" ones in the Window Preferences Installed JREs.
Previous Topic:define new Proposal Kind in the content assist
Next Topic:Eclipse IDE for C/C++ Developers -> Download JDT
Goto Forum:
  


Current Time: Fri Mar 29 08:29:11 GMT 2024

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

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

Back to the top