Solved

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

Posted on 2013-06-07
6
826 Views
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 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
Comment
Question by:Daniel Wilson
  • 4
  • 2
6 Comments
 
LVL 12

Expert Comment

by:Sharon Seth
ID: 39233171
what happens when you run java.exe from the command line?
0
 
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.
0
 
LVL 12

Assisted Solution

by:Sharon Seth
Sharon Seth earned 500 total points
ID: 39235216
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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
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
 
LVL 32

Accepted Solution

by:
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!
0
 
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java and GPO 11 70
Apps blocked by Java 9 63
map related example 6 36
servlet filter example 37 43
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

920 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

12 Experts available now in Live!

Get 1:1 Help Now