Eclipse will not open due to environment variables
Here is the answer, sorry .. but your solutions weren't correct
set PATH=C:\Program Files\Java\jre1.6.0_03\bin ;%PATH%
paxdiablo
Did you rewrite the error or you got some kind of software reading text from image, if you got which one ?
Eclipse project-wide error: Warning: The environment variable HOME is not set. The following directory will be used to store the Git
You need to set the JAVA_HOME variable in your system.
Depends on your Operating system you can check for "How to set Environment variable?" and from that point you need to set environment variable
Variable Name : JAVA_HOME
Value : Path of Java upto bin folder
- In Windows 7, type "environment" at the start menu
- Select "Edit environment variables for your account"
- Click the "New" button.
- Enter "HOME" in the name field
- Enter "%USERPROFILE%" or some other path in the value field.
- Click OK, and OK again. You have just added the Home directory on Windows.
eclipse.ini -vm has conflict with environment variables
Eclipse Neon (and Eclipse Oxygen) both require Java 8 to run, you appear to be running Java 7. You will have to install Java 8 and specify its location in the eclipse.ini.
Not able to run Eclipse Application. Can't even start Eclipse IDE
Then I installed Eclipse freshly, and when I open Eclipse.exe it doesn't open Eclipse IDE
The same eclipse archive when unzipped on a different machine works fine
That should mean a workspace issue: eclipse try to recreate a view for which the jar is missing.
Try to launch your eclipse with '-clean' option, and making sure it does reference a fresh new workspace (with the -data
option, like illustrated in this eclipse.ini)
This question illustrated a clean start:
eclipse.exe -clean --launcher.ini path\to\my_eclipse.ini
Regarding QTP, check this article from IBM, which describes a similar situation.
In this scenario HP Mercury Quick Test Pro Professional v9.3 was installed and the following Microsoft Windows XP User and System Environmental variables were present:
IBM_JAVA_OPTION and _JAVA_OPTION
Each was set to:
-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
or more explicitly:
-Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QuickTest Professional\bin\java_shared\classes;C:\PROGRA~1\HP\QuickTest Professional\bin\java_shared\classes\jasmine.jar
Note: HP Mercury Diagnostic Tool is another product that used these environment variables in the past. Contact HP Support if up to date information and support is needed on their products.
However it is important to stress the focus is on these environment variables being used dangerously by any vendor product or any software or user in general setting them directly
Resolving the problem
Delete or clear the values of theIBM_JAVA_OPTION
and_JAVA_OPTION
variables.After deleting/clearing the environment variables, it should be possible to start Rational Application Developer or other IBM SDK for Java (== JDK) based product.
Note: Deleting or clearing these variables may prevent the other products (such as the aforementioned HP products) from working.
Warning: Deleting or clearing or changing
IBM_JAVA_OPTION
or_JAVA_OPTION
should be done with caution if these are needed settings. There are legitimate and safe uses of these environment variables to set JVM options.
If this is indeed the case, that reminds me of my answer to the question:
"Why doesn’t the Java SDK installer set JAVA_HOME?"
;)
If you want both eclipse and QTP to coexist, you need to make sure any running configuration you may have (in or outside eclipse) needing to run "with" QTP are the scripts which set those extra variables (_JAVA_HOME or other).
If those variables are set globally (by the QTP installation process itself)... bad things can happens.
Eclipse Environment Variable Error
The Environment
tab does not seem to work. Here is the way I could get this work:
- In the
Run Configurations
, on theArguments
tab, click onVariables
inVM Arguments
section. - Click on
Edit Variables
- Click on
New
, addName
andValue
to the variable - You can find the new variable added in the list. You can double-click on the item to add it to your
VM Arguments
pane. - I have used it as
-Dcatalina.home=${TOMCAT_HOME}
and I could access this value fromSystem.getProperty("catalina.home")
How to fix a workspace in Eclipse that does not open anymore (because of EGit)?
Ok, after few research, I tried the following and it worked for me:
Go to .metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi and remove workbench.xmi
And Eclipse works now, but of course I don't why.
If someone has a little clue, I take it :)
Related Topics
On-The-Fly, In-Memory Java Code Compilation for Java 5 and Java 6
Regex That Will Match a Java Method Declaration
How to Read a Text-File Resource into Java Unit Test
How to Retrieve Ip Address from Http Header in Java
Write a Mode Method in Java to Find the Most Frequently Occurring Element in an Array
Copying Text to the Clipboard Using Java
How to Upload Files on Server Folder Using Jsp
What Is the Benefit of Polymorphism Using Collection Interface to Create Arraylist Object
Better Way to Create Aes Keys Than Seeding Securerandom
How to Decrypt an Encrypted Aes-256 String from Cryptojs Using Java
Java: Calling a Super Method Which Calls an Overridden Method
Java Parsing Xml Document Gives "Content Not Allowed in Prolog." Error
Reading a Binary Input Stream into a Single Byte Array in Java
How to Read File from Zip Using Inputstream
What Does the 'New' Keyword Actually Do in Java, and Should I Avoid Creating New Objects