Actually I downloaded the Android SDK from their site it was a bundle for android development and it was working fine. Then I downloaded the Netbeans from Java official site. It said it requires JDK7 so I downloaded that too. Now the Net Beans is working fine but eclipse displays this really long message box saying that Java was started but returned exit code 1 and then followed by some gibberish
My eclipse configuration file has the following text in it:
-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
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
Add '-XX:-UseCompressedOops' to the eclipse.ini
Related
I am getting error whenever I click eclipse icon that version 1.6 of the jvm is not suitable for this product. Version 1.7 or greater is required.
My other java applications in the system are using JRE 1.6 so I dont want to change that.
I have JDK 7 in my system as well but how can I point my eclipse to JDK 1.7 instead of default 1.6.
Thanks
You have several options.
Since you want to default to Java 1.6 for most of your other applications, I'd suggest modifying your Eclipse.ini:
https://wiki.eclipse.org/Eclipse.ini
EXAMPLE:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Java\JDK\1.8\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
SHORT STORY OF MY PROBLEMS:I did extract eclipse in "C:\" and used it also created workspace along with eclipse folder then I need to install windows 7 and for that I moved my workspace to another drive(in D:\prog).
Now to avoid deleting my eclipse again when need to format C drive I have extracted eclipse along my workspace folder(in D:\prog). Now eclipse shows error while opening, it show different-different error like sometime exit code=13, sometime exit code=1, but when I sorted out these error by editing eclipse.ini file then it shows failed to create the JVM.
I have read the link I have been gave, but still showing exit code=13, this is my .ini file...
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-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\jdk1.7.0_80\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
I installed jdk1.7.0_79 and Eclipse for Java EE 64 bit.
When trying to run Eclipse I got the following error: Java was started but returned exit code=1
I followed this solution: Eclipse returns error message "Java was started but returned exit code = 1"
Now, there is no error, but Eclipse isn't starting.
I tried all things said here: https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM, but when I try the other two options(\bin\javaw.exe, \jre\bin\java.exe), I get error code=1 error.
When I try to set it to \jre\bin\server\jvm.dll Eclipse won't start, and nothing shows up.
I tried reinstalling java and it didn't work.
Edit: I also tried adding -XX:-UseCompressedOops in eclipse.ini, but that didn't work either
Eclipse.ini content:
-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.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-XX:-UseCompressedOops
-vm
C:\Program Files\Java\jre7\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms1024
-Xmx1024m
I'm working on a piece of Java code and I have a dump problem. I'm doing some debugging and for some reason, when I'm trying to evaluate (watch or inspect) some variables declared inside a method it displays the following error:
errors during the evaluation.
I don't get it.
I'm using Eclipse 3.7.
For instance, it does the same even for the method parameters (which should be available until the end of the execution of the method).
My eclipse.ini file is:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024M
It seems that the problem was one of my eclipse plugin.
I had several plugins, some code review plugin. I just uninstalled them all and now it works.
I'm having trouble setting up a new eclipse installation with the -vm option. I'm using the eclipse.ini file below (which has worked in the past). I need this for the m2eclipse plugin. Currently, if I include the -vm option eclipse fails to start.
Any idea what the problem is with this?
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-vm
C:\Program Files\Java\jdk1.6.0_20\bin\javaw.exe
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-XX:PermSize=256m
-XX:MaxPermSize=512m
-Xms128m
-Xmx1024m
Are you using a 64bit version of Eclipse with a 32bit JVM?
I'm guessing its the space in the Program Files part of the path. The below example works fine for me. Can you try to install the JDK in c:/apps and see if the script below works for you?
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-vm
C:/apps/jdk1.6.0_15/bin/javaw.exe
-product
org.eclipse.epp.package.java.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-server
-Dosgi.requiredJavaVersion=1.5
-Xms1200m
-Xmx1200m