File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes location  where  java is installed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "location  where  java is installed." Watch "location  where  java is installed." New topic

location where java is installed.

Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
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%
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
On windows the default installation path is C:\Program Files\Java\jdk1.5.0
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 43391
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.

Don't get me started about those stupid light bulbs.
subject: location where java is installed.
It's not a secret anymore!