Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JAVA_HOME(Do I need to set JAVA_HOME variable and then use it in the path for 14.0.2 version?)
JAVA_HOME [message #1832482] Fri, 18 September 2020 15:51 Go to next message
Pooja Nair is currently offline Pooja NairFriend
Messages: 1
Registered: September 2020
Junior Member
Do I need to set JAVA_HOME variable and then use it in the path for 14.0.2 version? As of now it shows only a warning not an error.
Re: JAVA_HOME [message #1832497 is a reply to message #1832482] Sat, 19 September 2020 05:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31547
Registered: July 2009
Senior Member
Where is it showing as a warning? I'm not completely sure where the native launcher will all look for Java. I believe it's sufficient for it to be on the system PATH. Alternatively you can force a specific one to be used by adding a line like this in the eclipse.ini:
-vm
C:/Program Files/Java/jdk-12.0.1/bin
Those two lines must be before the -vmargs line.

There may be other technologies that look a the JAVA_HOME environment variable...


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JAVA_HOME [message #1832582 is a reply to message #1832497] Mon, 21 September 2020 11:15 Go to previous message
Mark Smith is currently offline Mark SmithFriend
Messages: 41
Registered: September 2020
Member
First you need to know the installation path for the Java Development Kit.

Open the default installation path for the JDK:

C:\Program Files\Java
There should be a subdirectory like:

C:\Program Files\Java\jdk1.8.0_172
Note: one has only to put the path to the jdk without /bin in the end (as suggested on a lot of places). e.g. C:\Java\jdk1.8.0_172 and NOT C:\Java\jdk1.8.0_172\bin !

Set the JAVA_HOME Variable

Once you have the JDK installation path:

Right-click the My Computer icon on your desktop and select Properties.
Click the Advanced tab, then click the Environment Variables button.
Under System Variables, click New.
Enter the variable name as JAVA_HOME.
Enter the variable value as the installation path for the Java Development Kit.
Click OK.
Click Apply Changes.
Note: You might need to restart Windows

Previous Topic: Java developer tool
Next Topic:backup/restore an Eclipse application environment
Goto Forum:
  


Current Time: Sun Oct 25 06:11:43 GMT 2020

Powered by FUDForum. Page generated in 0.02250 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top