[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [photran] "Failed to create the Java Virtual Machine" from Photran 8.0 (Eclipse 4.2) on Mac OS X 10.6.8
|
Hi Jeff,
Many thanks for your quick and detailed help.
I tried many solutions from Google, including the one for RAM setting like you mentioned. It turns out that my problem is caused by the -vmargs argument.
Those who have similar problems can try the following steps:
- Open eclipse.ini in the Eclipse.app package like Jeff wrote.
- Find the line containing -vmargs and replace it with "-vm XXX". I use /usr/bin/javaws for XXX on my Mac. From its name I guess XXX is the location of the JVM, but I frankly know little about it. I just happened to find a solution and I saw 'javaws' there before I found I also have an app called 'javaws' in /usr/bin/.
Cheers,
Jingshi
At 2012-11-15 22:38:59,"Jeffrey Overbey" <jeffreyoverbey@xxxxxxx> wrote:
Hi Jingshi,
"Failed to create the Java Virtual Machine".
I have a couple of ideas.
First, make sure you have the right version of Eclipse (32- or
64-bit). You can type "java -version" in a Terminal window to
determine whether your Java Virtual Machine is 32- or 64-bit.
Eclipse must match that.
If that doesn't work, it's possible that Eclipse is requesting more
memory than your machine can support. Try this:
Find Eclipse.app in the Finder. Right-click on it, and select
Show Package Contents.
Open the Contents folder.
Open the MacOS folder.
Right-click eclipse.ini, and select Open With >
TextEdit.app
One of the lines in the file starts with "-Xmx" and ends with
"m" -- possibly "-Xmx2048m" or "-Xmx512m" or something. That is
the amount of heap space (RAM) that Eclipse will request.
Change the value to something smaller. Be careful going below
512 -- Eclipse can run out of memory pretty easily.
Save the file, exit TextEdit, and restart Eclipse.
Jeff