Running Eclipse Error Code = 1?

I just downloaded eclipse-java-helios-SR2-win32-x86_64.zip extracted the zip. When I try to start, I get an error:

Click to see the 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 am running on Windows 7 64bit (yes, I downloaded 64bit JDK and 64bit Eclipse)

+3
source share
6 answers

The JVM used by Eclipse to run, is somehow C:\Windows\system32\javaw.exe . I do not think this is 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 should ideally appear before the line where your vmargs are indicated.

+4
source

I had this problem after upgrading from Java 7u17 to Java 7u21. At first I tried editing eclipse.ini, but that didn't work. Then I reloaded and installed the JRE again, and then it will work!

I assume that the JRE installation was somehow corrupted, and therefore Eclipse tried to use the backup jvm C:\Windows\System32\java.exe

Hope this helps others with the same problem.

+2
source

You are trying to run the JRE instead of the 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.

0
source

Perhaps you can try to reduce the following arguments.

- launcher.XXMaxPermSize 256M

-Xmx384m

I don’t know why, but it works for me.

0
source

Is there a chance to install Quick Test Professional? If yes, check this out: https://issuetracker.springsource.com/browse/STS-2828

I was getting the same error, tried a few recommendations, and no one worked. When I try to check my version of java, I get something like this:

Raised JAVA_TOOL_OPTIONS: -agentlib jvmhook Raised _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 initializing virtual machine Could not find jvmhook agent library on library path with error: unable to find dependent libraries

In my case, this is caused by a user environment variable that QTP puts in my user profile. Someone asked a similar question in Software Quality Assurance and testing . He succeeded by removing environment variables. When I deleted environment variables, I earned Eclipse, but QTP has some problems.

* Update. The problems that I encountered with QTP seemed to be due to the fact that I was trying to log in when the nightly regression tests were performed and all available licenses were used. Now I can use any program without problems.

0
source

It seems that the application uses the system32 java application by default.

You can change it by making sure that your PATH variable in the system environment is set correctly to indicate the correct version of java version (64-bit version of jdk \ bin).

Make sure the shortcuts in C:\Program Data\Oracle\Java indicate the correct version of java. If you do 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
source

Source: https://habr.com/ru/post/913710/


All Articles