The specified VM installation was not found: enter the standard virtual machine, name jre7

The specified VM installation was not found: enter the standard virtual machine, name jre7 Have you ever encountered this problem in Eclipse when creating an ant file? Then this article is for you. Deleting and re-creating a workspace is not a solution. There is a simple solution to resolve this problem without re-creating the workspace.

enter image description here

+57
java eclipse ant
Jan 22 '14 at 23:54
source share
9 answers

Best answer to

This happened to me after Un-installing Java and installing a new version.

All I have to do is open eclipse open Installed JREs from Windows --> Preferences --> Java --> Installed JREs

Then add the new JRE information. Details can be found here.

+7
Jan 22 '14 at 23:54
source share
β€” -
  • Right click on build.xml
  • Go to the "Run as" section β†’ "External tool configurations ..."
  • He will open a new window.
  • Go to the JRE tab.
  • Select the appropriate JRE if it is missing (sometimes an error icon is displayed on the jre tabs.)
+158
Oct. 15 '14 at 5:21
source share

In my case, this happens because I changed my JRE.

Decision:

Right click on ant script> Run as> External tool settings ...> Go to the JRE tab> select JRE

I hope for this help.

Thank you Sagar Vyas

+13
Aug 06 '15 at 16:51
source share

This is the preferred way to talk about projects that the JDK container uses, especially if two or more developers use the same version, managed by the project folder of the eclipse project.

Window / Preferences / Java / Installed JREs
List one or more JDKs installed on your computer. Eclipse assigns a name to the name jdk1.X.X_XX, you must store it as is. Never bind project build settings directly to use these names.

Window / Preferences / Java / Installed JRE Environments / Execution
A list of common jvm environments such as the JavaSE-1.6 and JavaSE-1-7 names. Click the rows and select jre instance in the right sidebar. These names are common, and all team members should already have them in the Eclipse installation.

Step 1: Here you can’t accidentally select anything if the JREs were deleted or the names changed in the settings of InstalledJREs. You can get

The specified vm install was not found error dialog.

Step 2. Select the second mouse button in the build.xml / Run As / Ant Build ... pop-up menu. Click the JRE tab and select a runtime. This may have an obsolete value from previous jdk values.

Project Properties / Path / Java Libraries
Add Library ... / JRE System Library / (x) runtime
Select the runtime environment that will be used for this project. Team members may not have the exact build of _XX jdk, but they may use the same version control parameters of the eclipse project. The runtime display hides user-specific details.

+4
Mar 31 '14 at 19:33
source share

Just this problem and the solution above does not work, at least not for me.

Instead, I submitted a suggested solution: http://www.javaworkspace.com/VMNotFound.do

Essentially, you go to the C: \ projects \ WORKSPACE.metadata.plugins \ org.eclipse.debug.core.launches directory

Looking for the JDK line that this eclipse is omitted and changes it to the name of your installed JDK, which you want to use, about which the eclipse knows.

+3
Apr 15 '14 at 10:03
source share

You can change the JRE to launch the wid> wid file with internal eclipse.

Right-click the ant file in the ant view and select "Run As" β†’ "Ant ..." in the context menu.

Then, in the launch dialog, select the JRE tab. Note the error message at the top if it cannot find the expected JRE.

Select the JRE that you installed or manage, install a new one. You can also add vm arguments (enable logging or change memory allocation) if you need in this dialog box.

+3
04 Oct '14 at 20:02
source share

Just delete the file below

 "<Your eclipse workspace location>\.metadata\.plugins\org.eclipse.debug.core\.launches\<projectname>.xml.launch" 

link to post

+2
Oct 12 '15 at 10:52
source share

The last answer is absolutely correct, however, a quick way is to remove the project link from eclipse (be sure to save the raw delete source) and import the project folder again. Thus, the project configuration reset using eclipse using the new jdk. But a wonderful article that helped me.

0
Nov 19 '14 at 10:51
source share

After the Java ant update failed, and the following steps fixed it.

Right-click on build.xml-Run As-External Tools Go to the JRE tab and check the box to use the JRE in the same way as the workspace.

0
Apr 15 '16 at 20:15
source share



All Articles