I just downloaded eclipse-java-helios-SR2-win32-x86_64.zip extracted the zip. When i\'m trying to run i get error:
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.
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.
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.
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.
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.