The Artima Developer Community
Sponsored Link

Java Answers Forum
Eclipse won't build/run because it's "missing VM"

12 replies on 1 page. Most recent reply: Oct 21, 2005 7:56 AM by Marco Mangan

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 12 replies on 1 page
Stan Feld

Posts: 2
Nickname: sesik
Registered: Dec, 2004

Eclipse won't build/run because it's "missing VM" Posted: Dec 22, 2004 9:59 AM
Reply to this message Reply
Advertisement
Howdy. I updated my J2SE today, and put it in a different directory from where the old version was. When I try build/running an app in Eclipse (3.0.1), it gives me this error: "Specified VM install not found: type Standard VM, name J2SDK 1.4.2.03".<br>
<br>
I've added the new SDK in Preferences>Java>Installed JREs, and the new JRE that it installs automatically in 'C:\Programs Files'. Neither make it work. I've even deleted the eclipse folder, and downloaded it over and put it back, same thing. Any help please? Thanks. :)


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Eclipse won't build/run because it's "missing VM" Posted: Dec 22, 2004 12:11 PM
Reply to this message Reply
Yeah, when I first tried Eclipse, it took me about an hour just to get it to run. I was getting similar errors. After fooling around, I found the trick (or a trick that worked) was to launch it like so:
@start eclipse -vm "C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin\javaw"
The "@start" part is optional. Customize the path to the JVM as suites your environment. You can also use java or javaw as you prefer.

Stan Feld

Posts: 2
Nickname: sesik
Registered: Dec, 2004

Re: Eclipse won't build/run because it's "missing VM" Posted: Dec 22, 2004 12:28 PM
Reply to this message Reply
Actually I just found a workaround. I made a copy of the JRE tot he folder where the old one was, started Eclipse, and rechanged again all the LIbrary references to the new JRE. Then I closed it, deleted the folder with the "old JRE. After I started Eclipse, it didn't give me any problems.
I guess it just likes to be "consulted first" when you're deleting a JRE from the system. Delete references to it in Eclipse, then you can uninstall it from your system. :)

nitin

Posts: 1
Nickname: bhandary
Registered: Jan, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Jan 17, 2005 7:01 AM
Reply to this message Reply
need help even i am getting this error while build, its urgent

Specified VM install not found: type Standard VM, name j2sdk1.4.1_01

Chris Miller

Posts: 23
Nickname: lordsauron
Registered: Jan, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Jan 19, 2005 5:58 PM
Reply to this message Reply
Looks to me like Eclipse only supports one type of JDK... I could be wrong, however. Are you sure you configured it to compile with the correct JDK?

Roger Morris

Posts: 1
Nickname: rogermorri
Registered: Jan, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Jan 26, 2005 11:51 AM
Reply to this message Reply
> need help even i am getting this error while build, its
> urgent
>
> Specified VM install not found: type Standard VM, name
> j2sdk1.4.1_01

Try deleting these files:
.../.metadata/.plugins/org.eclipse.debug.core/.launches/*.launch

--Roger

Froderick Von Schlossenburg

Posts: 1
Nickname: shooz
Registered: Feb, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Feb 10, 2005 8:47 AM
Reply to this message Reply
This happens to me every time I try to bring in a project configured for one machine to another. And don't even try creating a windows shortcut from the real jdk to the name it's complaining about -- chyeah, right. So, instead of deleting the files ('coz some of them might take a while to configure), you can open them up (your project *launch files) and change the VM_INSTALL_NAME to the entry on your box (not the full path, mind you). I believe that this entry is a reference to something in .plugins/org.eclipse.jdt.launching/libraryInfos.xml ... but could be wrong. Maybe someday I'll pin it down further.

Worst case, delete the launch files and start over.

Patrick

Posts: 1
Nickname: pat1
Registered: Feb, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Feb 24, 2005 5:17 AM
Reply to this message Reply
Great,

thank you very much....

Pat

alfonso

Posts: 1
Nickname: jalfo
Registered: May, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: May 18, 2005 7:56 AM
Reply to this message Reply
> Try deleting these files:
> .../.metadata/.plugins/org.eclipse.debug.core/.launches/*.
> launch
>
> --Roger
trying to solve the same problem
after a full day spent on it, I was getting crazy (and sad) because it seemed that nothing was working :-(((

and after all, it necessitated to delete a couple of files (simple but impossible for me to be guessed)...

thank you very very much

Mike

Posts: 1
Nickname: codejockey
Registered: Jun, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Jun 29, 2005 3:25 PM
Reply to this message Reply
> > Try deleting these files:
> >
> .../.metadata/.plugins/org.eclipse.debug.core/.launches/*.
>
> > launch
> >
> > --Roger
> trying to solve the same problem
> after a full day spent on it, I was getting crazy (and
> sad) because it seemed that nothing was working :-(((
>
> and after all, it necessitated to delete a couple of files
> (simple but impossible for me to be guessed)...
>
> thank you very very much

-Deleting old launch files helps -- Thanks for the tip.
I reiterate. Deleting the launch files works. In the process I was able to clear out a bunch of old ant tasks. Also, you are able to toggle between virtual machines and remove some problems with base code that differs between 1.4.2_08 and 1.5_02.

-vm no help
fyi, as previously posted passing the virtual machine location via -vm "<bin path>" did not seem to make a difference.

David Snyderman

Posts: 1
Nickname: davesnyd
Registered: Sep, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Sep 16, 2005 4:42 AM
Reply to this message Reply
Great info! Helped me a lot. Maybe that what I realized is obvious to everyone else, but in case not:

1. The .metadata directory is at the root of the eclipse workspace.

2. Killing the launch files removes the launch entries from the run, run external, and debug menus in eclipse. Really, it looks like only the build launch files contain a jdk reference.

3. Eclipse needs to be restarted for these changes to take effect.

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Eclipse won't build/run because it's "missing VM" Posted: Sep 18, 2005 10:52 PM
Reply to this message Reply
Unfortunately killing the launch files for Eclipse
usually means you have to re-configure the project
which is quite arduous if your project is significantly
large. That's the point at which Eclipse makes me
wince (I find this to be quite a drag).

Marco Mangan

Posts: 1
Nickname: mmangan
Registered: Oct, 2005

Re: Eclipse won't build/run because it's "missing VM" Posted: Oct 21, 2005 7:56 AM
Reply to this message Reply
Hello,

a simple solution is to check Windows | Preferences | Java | Installed JREs to see if one of the listed VMs name matchs the missing VM name. If not, just create a new VM or rename an existing one.

Marco

Flat View: This topic has 12 replies on 1 page
Topic: Help with a basic JAVA program for class- Previous Topic   Next Topic Topic: need help with concept of writing A Class

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use