"Could not create the JVM" error at Eclipse startup - java

I've got error like this:
My eclipse.ini:
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize 256M
-showsplash com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
--launcher.defaultAction openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
-vm C:\Program Files\Java\jdk1.7.0_45\bin\javaw.exe
how to fix this problem?

you can start eclipse this way instead:
eclipse -vm <path to java>

In the eclipse.ini file change the following
--launcher.XXMaxPermSize
900m
from
--launcher.XXMaxPermSize
512m
Also check out this link and mostly this error comes due to the hardware issues like the RAM.

same thing happened with me when i updated my jre7 , what worked for me was updating the new path in windows environment variables,
add a new system variable :
Variable Name: PATH
Variable value: C:\Program Files\Java\jdk1.7.0_51\bin
hope this helps..:)

Related

How to speed up reading files of a project in eclipse

I have a liferay 6.2 project with thousand files in source folder
I use eclipse IDE to develop and it has a annoyed issue: each time I click a folder in eclipse, it take long time to open the folder to see files and subfolders
I have config the eclipse.ini of eclipse to tuning eclipse performance but it does not have any effect.
Please me the suggestion to speedup eclipse
Bellow is the content of eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
2048M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
4096m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms2048m
-Xmx4096m
-Xverify:none

Error starting eclipse exit code=13

I have already searched for this but i cant find something that answer this (tried some but i dont understand how to proceed or it just dont works)
So here am I, when I launch eclipse it just doesn't start and I got this message:
If I understood well, the eclipse.ini file has something to do with the problem. Here it is:
Sorry for my language, I am not native english so, I tried to explain as best as I could.
You have a 32bit OS and you are trying to use a 64bit eclipse and/or 64bit JDK
Before to do this i suggest to verify the type of your OS(32 or 64 bit).
-I also advise you to check the version of java and eclipse IDE that you have downloaded and installed
After this try to erase the string from your ENV path of WINDOWS from System->Advanced settings->enviroment path
and erase the string C:\ProgramData\Oracle\Java\bin;
if it doesn't work yet try to modify your eclipse.ini like this:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
**-vm
C:\Program Files\Java\jre1.8.0_31\bin\javaw.exe**
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Xmx512m
you must put the string before vmargs and put the correct release of java.
Also you have to put -vm and a new line the path

Limited BigInteger in eclipse

In Eclipse, I get a value for BigInteger.valueOf(2).pow(31093), but not for BigInteger.valueOf(2).pow(31094) (its empty).
I edited my eclipse.ini like this:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.standard_2.0.2.20140224-0000
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:+UseParallelGC
-Xms512m
-Xmx1024m
-XX:PermSize=1024M
On other computers I succeeded. Is eclipse still the problem or there is something else?
If it interest anyone - The problem is a bug of the Console view in Eclipse.
Printing very big BigIntegers - same problem. The workaround works.

Java crashes with Java was started but returned exit code=1

I use eclipse for android development.
Sometimes, if Google Chrome is running, it crashes and Eclipse also.
And I get message Java was started but returned exit code=1.
Full message is in print screen.
and my eclipse.ini :
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vm
C:/Program Files/Java/jdk1.7.0_51/jre/bin/server/jvm.dll
-vmargs
-Xms1024m
-Xmx1024m
-XX:MaxPermSize=512m
If your JDK version is 32bit then download Eclipse or STS of 32 bit.
If your JDK version is 64bit then download Eclipse or STS of 64 bit.This worked for me

Cannot run Eclipse; JVM terminated with Exit code=13

I just append -vm
C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe
in eclipse.ini then I try to start eclipse again and got this error. Give me how to solve or link that actually solve it.
this is my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
-vm
C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M]
[See image here]
Have a look on the below url.
Cannot run Eclipse; JVM terminated. Exit code=13

Categories

Resources