Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

location where java is installed.

 
Siva kandasamy
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See below.
I have already installed "java version 1.5.0" in my local desktop.
How do I find out the location or the path where I have installed my Java ?


C:\>java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)

C:\>echo %java_home%
%java_home%
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On windows the default installation path is C:\Program Files\Java\jdk1.5.0
 
Campbell Ritchie
Sheriff
Pie
Posts: 49789
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Easiest wasy is to inspect your path.
In Windows 9x (98/me) open your autoexec.bat file in c:\
In windows 2000/XP right-click "my computer" -> properties -> advanced -> environment variables and inspect PATH.
Linux-don't know.

CR
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic