Eclipse (Scala configuration) fails to create JVM on Win7 64-bit

Posted on 2013-06-07
Last Modified: 2013-06-16
I am setting up a VM to begin working with Scala.  My machine runs Windows 7 64-bit.

I have installed Eclipse 64-bit as configured at  Actually, I just unzipped it into c:\program files\eclipse.

I then installed Java 1.7.  Since I was running 32-bit IE, the 32-bit version installed.  Running into trouble with that (Eclipse insisting it couldn't find a JVM) I installed Java 1.7, 64-bit.

So I have 64-bit Windows, Eclipse, and Java.  I added the 64-bit Java bin directory to my PATH variable.  I also put that path in the eclipse.ini file.
C:\Program Files\Java\jre7\bin

When I start Eclipse, it says:
Error: Could not create the java Virtual Machine
Error: A fatal exception has occurred. Program will exit.

I read that this is usually a memory constraint.  But Task Manager reports 2100 MB free.
Just in case, I changed

No better.

What am I overlooking?

Question by:Daniel Wilson
  • 4
  • 2
LVL 12

Expert Comment

by:Sharon Seth
ID: 39233171
what happens when you run java.exe from the command line?
LVL 32

Author Comment

by:Daniel Wilson
ID: 39233456
I've tried
java -version
and it tells me I have the 64-bit version of Java 7.something.
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 500 total points
ID: 39235216
Try specifying the exe in the VM path
like ,
C:\Program Files\Java\jre7\bin\javaw.exe
C:\Program Files\Java\jre7\bin\java.exe
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

LVL 32

Author Comment

by:Daniel Wilson
ID: 39239744
No change, but this is noteworthy.

After the box that lists the 2 errors, a LONG message box comes up saying:
Java was started but returned exit code=1
-vm c:\program files\java\jre\bin\javaw.exe

Open in new window

So ... I think it's not using java.exe or javaw.exe where I tell it to, but in system32.
LVL 32

Accepted Solution

Daniel Wilson earned 0 total points
ID: 39239774
In c:\Windows\System32, I renamed java.exe, javaw.exe, and javaws.exe out of the way.  Now Eclipse starts!
LVL 32

Author Closing Comment

by:Daniel Wilson
ID: 39251083
Specifying the EXE in the -VM path did not solve it, but led me to the solution.

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now