| 
| Customize installed JREs [message #244316] | Thu, 07 June 2007 06:03  |  | 
| Eclipse User  |  |  |  |  | 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 12:49   |  | 
| Eclipse User  |  |  |  |  | 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 03:29  |  | 
| Eclipse User  |  |  |  |  | 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.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03073 seconds