Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 897
  • Last Modified:

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

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 scala-ide.org.  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.
-vm
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
-Xmx1048m
 to
-Xmx512m

No better.

What am I overlooking?

Thanks!
0
Daniel Wilson
Asked:
Daniel Wilson
  • 4
  • 2
2 Solutions
 
Sharon SethCommented:
what happens when you run java.exe from the command line?
0
 
Daniel WilsonAuthor Commented:
I've tried
java -version
and it tells me I have the 64-bit version of Java 7.something.
0
 
Sharon SethCommented:
Try specifying the exe in the VM path
like ,
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
or
-vm
C:\Program Files\Java\jre7\bin\java.exe
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Daniel WilsonAuthor Commented:
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
c:\windows\system32\javaw.exe
-Xmx512m
-Xms100m
-XX:MaxPermSize=256m
-vm c:\program files\java\jre\bin\javaw.exe
etc.

Open in new window


So ... I think it's not using java.exe or javaw.exe where I tell it to, but in system32.
0
 
Daniel WilsonAuthor Commented:
In c:\Windows\System32, I renamed java.exe, javaw.exe, and javaws.exe out of the way.  Now Eclipse starts!
0
 
Daniel WilsonAuthor Commented:
Specifying the EXE in the -VM path did not solve it, but led me to the solution.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now