Eclipse startup Error code=1? - eclipse

I just downloaded eclipse-java-helios-SR2-win32-x86_64.zip extracted the zip.
When i'm trying to run i get error:
Here is my .ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.2.R36x_v20101222
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
I'm runing on Windows 7 64bit (Yes i downloaded the 64bit JDK and 64bit Eclipse)

The JVM being used by Eclipse for startup is somehow C:\Windows\system32\javaw.exe. I do not think that this what you intended to use.
To specify the JVM to be used by Eclipse, add the following line to the eclipse.ini file:
-vm <location of javaw.exe of your JAVA_HOME>
The above line would ideally have to be present before the line where your vmargs are specified.

I just had this problem after updating from Java 7u17 to Java 7u21. I first tried editing eclipse.ini, but that did't work. I then re-downloaded and re-installed the JRE and then it worked!
I'm guessing the JRE install was somehow corrupted, and so Eclipse tried to use the fallback jvm of C:\Windows\System32\java.exe
Hope this helps others with the same issue.

You are trying to run using a JRE instead of a JDK. Download the latest JDK from Sun (oops I mean oracle):
http://www.oracle.com/technetwork/java/javase/downloads/index.html
And run with that instead.

Maybe you can try to set the following arguments smaller.
--launcher.XXMaxPermSize
256M
-Xmx384m
Don't know why, but it works for me .

Is there any chance that you have Quick Test Professional installed? If so, check this out:
https://issuetracker.springsource.com/browse/STS-2828
I was getting the same error, tried several recommendations and none worked. When I try to check my java version, I get something like this:
Picked up JAVA_TOOL_OPTIONS: -agentlib jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\
bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
Error occurred during initialization of VM
Could not find agent library jvmhook on the library path, with error: Can't find
dependent libraries
In my case it was caused by a user environment variable that QTP put in my user profile. Someone asked a similar question over on Software Quality Assurance and Testing. He had success by removing the environment variables. When I removed the environment variables, I got Eclipse to work, but QTP is having some problems.
*Update: The problems I was having with QTP seem to have been because I was trying to log in while the nightly regression tests were running and all the available licenses were being used. I am now able to use either program with no issues.

It looks like the application is defaulting to the system32 java application.
You can change it by making sure that your PATH variable in the system environment is set properly to point to the correct version of java(64 bit jdk\bin) version.
Make sure that the shortcuts in C:\Program Data\Oracle\Java point to the correct version of java. If not fix the target location. (if you cannot fix the locations in the shortcut properties, delete the shortcuts and create a new one with the same name)
Note that Program Data is a hidden folder.

Related

Eclipse hang after import google play library

I've import google play service library in one of my app and now my eclipse hang and go out of memory when I try to run only this app.
There aren't error messege before launch and I've just tried few time but without success.
Eclipse show me this message:
Unable to execute dex: Java heap space
Conversion to Dalvik format failed: Unable to execute dex: Java heap space
After increasing memory in eclipse.ini as is indicated in various posts, I obtain this new error:
Unable to execute dex: GC overhead limit exceeded
GC overhead limit exceeded
Here my eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms1024m
-Xmx1024m
-XX:-UseCompressedOops
-Dorg.eclipse.swt.browser.DefaultType=mozilla
Can someone help me?
I've no idea how solve this issue...
You have to edit the -XmsAm and -XmxBm parameters manually from the eclipse.ini file to increase memory. Here try this.
https://stackoverflow.com/a/6024262/2896954

eclipse jvm crash

I meet a problem,When I start the eclipse,it always alert me:JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx256m
I really don't know how to solve it,I ever installed eclipse in my linux system before,but I don't know why it begin to alert me this error after I change a new version eclipse,the eclipse before installed had been removed.Please help me solve it.Thanks.
Dear sir, you might have an incompatible version of Eclipse and JVM. Please, find the answer through this link below:
http://faisalbhagat.blogspot.com/2013/08/jvm-exit-code-13.html

Eclipse getting closed regularly

I have a machine with 2GB of RAM.
Currently, my Eclipse is getting closed regularly after throwing:
Unhandled event loop exception
PermGen space
Some times it gets closed without showing any error, or some other errors.
Here is the setting that I have in eclipse.ini:
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms256m
-Xmx384m
What changes do I need to make to fix this?
Add at the end of your eclipse.ini file this line:
-XX:MaxPermSize=256m
Thanks a lot.I made it 512 and got it worked.

Eclipse hanging on start up

I was working on my Macbook, when my battery ran out. Now Eclipse refuses to start, getting stuck on "Loading Workbench". The stacktrace in the bottom is from pressing ^C after a minute or so of hanging.
~/Downloads/eclipse$ ./Eclipse.app/Contents/MacOS/eclipse -clean -debug -consolelog
Start VM: -Dosgi.requiredJavaVersion=1.5
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-clean
-Djava.class.path=/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-os macosx
-ws carbon
-arch x86
-showsplash
-launcher /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
--launcher.library /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.101.R34x_v20080731/eclipse_1115.so
-startup /Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
-clean
-debug
-consolelog
-vm /System/Library/Frameworks/JavaVM.framework
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.internal.carbon.smallFonts
-clean
-Djava.class.path=/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
Install location:
file:/Users/admin/Downloads/eclipse/
Configuration file:
file:/Users/admin/Downloads/eclipse/configuration/config.ini loaded
Configuration location:
file:/Users/admin/Downloads/eclipse/configuration/
Framework located:
file:/Users/admin/Downloads/eclipse/plugins/org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
Framework classpath:
file:/Users/admin/Downloads/eclipse/plugins/org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
Splash location:
/Users/admin/Downloads/eclipse/plugins/org.eclipse.platform_3.3.101.v200902111700/splash.bmp
Debug options:
file:/Users/admin/Downloads/eclipse/Eclipse.app/Contents/MacOS/.options not found
Time to load bundles: 16
Starting application: 3649
!SESSION 2011-08-30 18:03:17.958 -----------------------------------------------
eclipse.buildId=M20090211-1700
java.version=1.6.0_26
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US
Command-line arguments: -os macosx -ws carbon -arch x86 -clean -debug -consolelog
!ENTRY org.eclipse.core.resources 2 10035 2011-08-30 18:03:22.073
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.tigris.subversion.clientadapter.javahl 1 0 2011-08-30 18:03:22.782
!MESSAGE Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = .:/Users/admin/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
^C
Exception in thread "Thread-1" org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.SWT.error(SWT.java:3666)
at org.eclipse.swt.widgets.Widget.error(Widget.java:681)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:341)
at org.eclipse.swt.widgets.Shell.getShells(Shell.java:885)
at org.eclipse.swt.widgets.Shell.kEventWindowHidden(Shell.java:1213)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2044)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4171)
at org.eclipse.equinox.launcher.JNIBridge._takedown_splash(Native Method)
at org.eclipse.equinox.launcher.JNIBridge.takeDownSplash(JNIBridge.java:110)
at org.eclipse.equinox.launcher.Main.takeDownSplash(Main.java:1863)
at org.eclipse.equinox.launcher.Main$SplashHandler.run(Main.java:106)
Any ideas? I guess I will try installing JavaHL if there are no other suggestions. Eclipse always complained about it, but it always started up before.
Most solutions delete or alter the metadata, unfortunately this often removes SVN and library information from projects which is a major time-loss.
I have found a commandline switch (See https://bugs.eclipse.org/bugs/show_bug.cgi?id=389738) that clears any saved state (open windows and such) which usually cause startup hangs: -clearPersistedState.
I throw in a whole range of options now:
In a terminal, type <eclipse dir>/eclipse -clean -refresh -debug -consolelog -clearPersistedState
Open the workspace that causes the issue
Wait until eclipse is fully started and ready, then close it and start it again normally
This always solves startup issues for me.
The procedure shown at
http://off-topic.biz/en/eclipse-hangs-at-startup-showing-only-the-splash-screen/
worked for me
cd .metadata/.plugins
mv org.eclipse.core.resources org.eclipse.core.resources.bak
Start eclipse. (It should show an error message or an empty workspace because no project is found.)
Close all open editors tabs.
Exit eclipse.
rm -rf org.eclipse.core.resources (Delete the newly created directory.)
mv org.eclipse.core.resources.bak/ org.eclipse.core.resources (Restore the original directory.)
Start eclipse and start working. :-)
Instead of creating a new workspace, just delete the .metadata folder which resides inside your workspace folder. This will enable you to load the workspace and just re-import all projects and preferences into it - it will save some time for you.
One more thing you can check before you do this or before you recreate the workspace: look at the .log file (which resides in that .metadata folder) for information that may give some light to the cause of the problem.
Yup, JavaHL was the likely cuprit as installing it solved the problem. It's still odd that Eclipse never hung before due to this reason, but after a crash, it did.
As Tonny says is the comments, creating a new workspaces did the trick for me.
I run into this problem frequently. Not sure of the cause.
Removing my workspace works but I hate having to configure everything again. Once I solved it when I moved my workspace to another location, started Eclipse and uninstalled a few plugins I didn't need anymore. Then I removed the newly created workspace and moved the old one back.
I imagine you could try without uninstalling anything and see if it helps.
I had the same kind of problem, if you follow the link I explain what I did
Eclipse Luna Hanging when Loading Debug Configuration
It seems the .Lock file was not closed properly within the .metadata folder and prevented eclipse from starting the workbench.
delete the .metadata folder and then just re-imported the project this should get it working again.
In one case, I had to delete the file .metadata/.plugins/org.eclipse.core.resources/11.snap
This file was the only non-hidden file in the org.eclipse.core.resources folder.
This way, everything in the workspace was preserved.

Eclipse fails to start on Windows if -Xmx option is specified a higher value

I'm running inside a VM. In the VMWare settings, I can see that the RAM alloted is 6016 MB which is 6GB.
As recommended in our company I used -Xmx1024m (the default was 512) but eclipse fails to start, saying jvm exit code -1. The maximum value for Xmx that works is 660m. Why is this happening? Please help before I shoot myself.
Edit: I'm able to run a Helloworld java program specifying the option -Xmx1024m. Only eclipse cribs during starting.
You need to make sure that your OS and JVM are both 64-bit. In a 32-bit environment virtual memory address space fragmentation can result in relatively small contiguous memory blocks being available.
If you have to stay with 32-bit OS, then try adding the following to the start of your eclipse.ini file:
-vm
[some.path]/javaw.exe
You may also want to try disabling any devices that aren't strictly required as that will load fewer drivers into the address space and cause less fragmentation.
Try running with parameters -Xms1024M -Xmx6016M
Here Xms is the initial heap memory at startup and xmx is total heap memory that can be allocated. You can increase or decrease heap memory depending on your project and objects size.
Can you please try with -Xmx1024m and -Xms512m. Somtimes if the difference between maximum and minimum heap space size is too large it affects eclipse startup.
Ok Now,
Remove all the Windows java files from the System32 directory and install the latest jdk from sun. Then start the Eclipse, it will run I hope.
After removing it may ask for the latest jdk/jre. So set the path to include jre in JDK. And run it.
Using the Android bundle version - adt-bundle-windows-x86-20130219
I had the same issue with the virtual machine failing to start. I reduced the mem max (running in a VM as well xp x86). I found this thread and modified the config and it worked for me. The VM ram was 1.7gb, upped to 2.1 with no change.
I changed the eclipse.ini setting from
-Xmx768m
to
-Xmx512m
and it started straight away.
I left the min at 40m and the other settings were unchanged.
Heres the full config:
-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.v20120522-1813
-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
-Xmx512m
-Declipse.buildId=v21.1.0-569685