Eclipse startup Error code=1?

后端 未结 6 774
北恋
北恋 2020-12-07 03:25

I just downloaded eclipse-java-helios-SR2-win32-x86_64.zip extracted the zip. When i\'m trying to run i get error:

相关标签:
6条回答
  • 2020-12-07 03:56

    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.

    0 讨论(0)
  • 2020-12-07 04:10

    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.

    0 讨论(0)
  • 2020-12-07 04:12

    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.

    0 讨论(0)
  • 2020-12-07 04:13

    Maybe you can try to set the following arguments smaller.

    --launcher.XXMaxPermSize 256M

    -Xmx384m

    Don't know why, but it works for me .

    0 讨论(0)
  • 2020-12-07 04:19

    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.

    0 讨论(0)
  • 2020-12-07 04:21

    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.

    0 讨论(0)
提交回复
热议问题