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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 36478
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.

It is sorta covered in the JavaRanch Style Guide.
subject: location where java is installed.
Similar Threads
compiling servlet
java 1.4 and java 1.5
Picking the color under the mouse cursor on a JPanel
doing javac -source 1.5
Overloaded method