Skip to main content



      Home
Home » Newcomers » Newcomers » PATH environment variable used by Eclipse Ide(PATH environment variable used by Eclipse Ide)
PATH environment variable used by Eclipse Ide [message #1711859] Tue, 20 October 2015 03:52 Go to next message
Eclipse UserFriend
Although an issue was not being reported as an error when I installed (copy and paste files using file explorer) Eclipse IDE, I found out rather by trial and error as the error message was not clear about the environment variable it was searching for that the environment variable PATH is looked up rather than JAVA_HOME and I am wondering whether this is documented, just to be on the safe side of matters.

I am also having some difficulty adding jar files to Eclipse, I would have assumed that copying and pasting the jar files would allow the IDE to parse them automatically and allow me to call the relevant objects through the programming interface, but unfortunately it does not happen.

I use two computers most of the time and sometimes other computers when I am at school or else I am at another location which would be potentially the clients' location. My computers run Windows 8.1 and Windows Server 2007 SP2 respectively and both have Eclipse installed, the problem mentioned in the first paragraph was noticed on the computer with the legacy Windows Server 2007 SP2 installed.

Command line
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b15)
Java HotSpot(TM) Client VM (build 25.45-b02, mixed mode, sharing)

C:\Users\Administrator>javac
Usage: javac <options> <source files>
...
javac is located in C:\Program Files\Java\jdk1.8.0_45\bin.


I am not sure why JDK information is not displayed, since I have temporarily created a user variable PATH and here I am showing the value of different variables.

User variables for user Administrator
JAVA_HOME C:\Program Files\Java\jdk1.8.0_45\bin
PATH C:\Program Files\Java\jdk1.8.0_45\bin

System variables
JAVA_HOME C:\Program Files\Java\jdk1.8.0_45\bin
JRE_HOME C:\Program Files\Java\jre1.8.0_45\bin

I have other versions of JRE and JDK on the computer as well (Windows Server 2007)
│ │ ├───PortableInterceptor
│ │ │ └───ORBInitInfoPackage
│ │ ├───PortableServer
│ │ │ ├───CurrentPackage
│ │ │ ├───POAManagerPackage
│ │ │ ├───POAPackage
│ │ │ ├───portable
│ │ │ └───ServantLocatorPackage
│ │ ├───SendingContext
│ │ └───stub
│ │ └───java
│ │ └───rmi
│ ├───w3c
│ │ └───dom
│ │ ├───bootstrap
│ │ ├───css
│ │ ├───events
│ │ ├───html
│ │ ├───ls
│ │ ├───ranges
│ │ ├───stylesheets
│ │ ├───traversal
│ │ ├───views
│ │ └───xpath
│ └───xml
│ └───sax
│ ├───ext
│ └───helpers
├───jdk1.8.0_45
│ ├───bin
│ ├───db
│ │ ├───bin
│ │ └───lib
│ ├───include
│ │ └───win32
│ │ └───bridge
│ ├───jre
│ │ ├───bin
│ │ │ ├───client
│ │ │ ├───dtplugin
│ │ │ ├───plugin2
│ │ │ └───server
│ │ └───lib
│ │ ├───applet
│ │ ├───cmm
│ │ ├───deploy
│ │ ├───ext
│ │ ├───fonts
│ │ ├───i386
│ │ ├───images
│ │ │ └───cursors
│ │ ├───jfr
│ │ ├───management
│ │ └───security
│ └───lib
│ ├───missioncontrol
│ │ ├───configuration
│ │ │ ├───org.eclipse.core.runtime
│ │ │ │ └───.manager
│ │ │ ├───org.eclipse.e4.ui.css.swt.theme
│ │ │ ├───org.eclipse.equinox.app
│ │ │ │ └───.manager
│ │ │ ├───org.eclipse.equinox.launcher
│ │ │ │ └───com.jrockit.mc.rcp.application_5.5.0.165303
│ │ │ ├───org.eclipse.equinox.simpleconfigurator
│ │ │ ├───org.eclipse.osgi
│ │ │ │ ├───.manager
│ │ │ │ ├───10
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───152
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ │ └───full
│ │ │ │ │ └───etool16
│ │ │ │ ├───157
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ │ └───full
│ │ │ │ │ └───ovr16
│ │ │ │ ├───183
│ │ │ │ │ └───data
│ │ │ │ ├───21
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───223
│ │ │ │ │ └───data
│ │ │ │ │ └───2147065436
│ │ │ │ ├───250
│ │ │ │ │ └───data
│ │ │ │ │ └───listener_1925729951
│ │ │ │ ├───27
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───28
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───307
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ ├───icons
│ │ │ │ │ │ └───full
│ │ │ │ │ └───org
│ │ │ │ │ └───eclipse
│ │ │ │ │ └───jface
│ │ │ │ │ ├───action
│ │ │ │ │ │ └───images
│ │ │ │ │ └───fieldassist
│ │ │ │ │ └───images
│ │ │ │ ├───32
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───325
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ ├───331
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ │ └───full
│ │ │ │ │ ├───elcl16
│ │ │ │ │ ├───etool16
│ │ │ │ │ ├───eview16
│ │ │ │ │ ├───obj16
│ │ │ │ │ └───progress
│ │ │ │ ├───335
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ │ └───full
│ │ │ │ │ ├───dlcl16
│ │ │ │ │ └───elcl16
│ │ │ │ ├───45
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───49
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───58
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ ├───61
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ ├───com
│ │ │ │ │ │ └───jrockit
│ │ │ │ │ │ └───mc
│ │ │ │ │ │ └───rcp
│ │ │ │ │ │ └───intro
│ │ │ │ │ ├───content
│ │ │ │ │ │ └───images
│ │ │ │ │ └───META-INF
│ │ │ │ ├───67
│ │ │ │ │ └───0
│ │ │ │ │ └───.cp
│ │ │ │ │ └───icons
│ │ │ │ └───71
│ │ │ │ └───0
│ │ │ │ └───.cp
│ │ │ │ └───icons
│ │ │ └───org.eclipse.update
│ │ │ └───history
│ │ ├───dropins
│ │ ├───features
│ │ │ ├───com.jrockit.mc.feature.console_5.5.0.165303
│ │ │ ├───com.jrockit.mc.feature.core_5.5.0.165303
│ │ │ ├───com.jrockit.mc.feature.flightrecorder_5.5.0.165303
│ │ │ ├───com.jrockit.mc.feature.rcp.ja_5.5.0.165303
│ │ │ ├───com.jrockit.mc.feature.rcp.zh_CN_5.5.0.165303
│ │ │ ├───com.jrockit.mc.feature.rcp_5.5.0.165303
│ │ │ ├───com.jrockit.mc.rcp.product_5.5.0.165303
│ │ │ ├───org.eclipse.babel.nls_eclipse_ja_4.4.0.v20140623020002
│ │ │ ├───org.eclipse.babel.nls_eclipse_zh_4.4.0.v20140623020002
│ │ │ ├───org.eclipse.e4.rcp_1.3.100.v20141007-2033
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.ecf.core.feature_1.1.0.v20140827-1444
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.ecf.core.ssl.feature_1.0.0.v20140827-1444
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.ecf.filetransfer.feature_3.9.0.v20140827-1444
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.ecf.filetransfer.httpclient4.feature_3.9.1.v2014
0827-1444
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.ecf.filetransfer.httpclient4.ssl.feature_1.0.0.v
20140827-1444
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.ecf.filetransfer.ssl.feature_1.0.0.v20140827-144
4
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.emf.common_2.10.1.v20140901-1043
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.emf.ecore_2.10.1.v20140901-1043
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.equinox.p2.core.feature_1.3.0.v20140523-0116
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.equinox.p2.rcp.feature_1.2.0.v20140523-0116
│ │ │ │ └───META-INF
│ │ │ ├───org.eclipse.help_2.0.102.v20141007-2301
│ │ │ │ └───META-INF
│ │ │ └───org.eclipse.rcp_4.4.0.v20141007-2301
│ │ │ └───META-INF
│ │ ├───p2
│ │ │ ├───org.eclipse.equinox.p2.core
│ │ │ │ └───cache
│ │ │ │ └───binary
│ │ │ └───org.eclipse.equinox.p2.engine
│ │ │ ├───.settings
│ │ │ └───profileRegistry
│ │ │ └───JMC.profile
│ │ │ └───.data
│ │ │ └───.settings
│ │ └───plugins
│ │ ├───com.jrockit.mc.console.ui.notification_5.5.0.165303
│ │ │ ├───html
│ │ │ │ └───dcommon
│ │ │ │ ├───css
│ │ │ │ ├───gifs
│ │ │ │ └───html
│ │ │ ├───icons
│ │ │ └───META-INF
│ │ ├───com.jrockit.mc.rjmx_5.5.0.165303
│ │ │ ├───icons
│ │ │ ├───lib
│ │ │ ├───META-INF
│ │ │ └───schema
│ │ ├───org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v201410
07-2033
│ │ │ └───META-INF
│ │ └───org.eclipse.ui.themes_1.0.1.v20140819-1717
│ │ ├───css
│ │ │ └───dark
│ │ ├───images
│ │ └───META-INF
│ └───visualvm
│ ├───etc
│ ├───platform
│ │ ├───config
│ │ │ ├───ModuleAutoDeps
│ │ │ └───Modules
│ │ ├───core
│ │ │ └───locale
│ │ ├───lib
│ │ │ └───locale
│ │ ├───modules
│ │ │ ├───ext
│ │ │ │ └───locale
│ │ │ └───locale
│ │ └───update_tracking
│ ├───profiler
│ │ ├───config
│ │ │ └───Modules
│ │ ├───lib
│ │ │ ├───deployed
│ │ │ │ ├───jdk15
│ │ │ │ │ └───windows
│ │ │ │ └───jdk16
│ │ │ │ └───windows
│ │ │ └───locale
│ │ ├───modules
│ │ │ └───locale
│ │ └───update_tracking
│ └───visualvm
│ ├───config
│ │ └───Modules
│ ├───core
│ │ └───locale
│ ├───modules
│ │ └───locale
│ └───update_tracking
└───jre1.8.0_51
├───bin
│ ├───client
│ ├───dtplugin
│ └───plugin2
├───launch4j-tmp
└───lib
├───applet
├───cmm
├───deploy
├───ext
├───fonts
├───i386
├───images
│ └───cursors
├───jfr
├───management
└───security

C:\Program Files\Java>
Re: PATH environment variable used by Eclipse Ide [message #1711969 is a reply to message #1711859] Tue, 20 October 2015 09:13 Go to previous message
Eclipse UserFriend
A little research and reading goes a long way.
https://wiki.eclipse.org/Eclipse.ini#Specifying_the_JVM (linked from the Announcement at the top of this forum)
From there you'll find links to other useful information, such as:
https://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JRE
https://wiki.eclipse.org/Equinox_Launcher#Finding_a_VM.2C_Using_JNI_Invocation_or_Executing_Java
Previous Topic:not able to compile my project in eclipse with maven project
Next Topic:Eclipse IDE
Goto Forum:
  


Current Time: Wed May 07 09:07:28 EDT 2025

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

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

Back to the top