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 Setting path for Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Setting path for Java

rj jn

Joined: Dec 08, 2008
Posts: 2
Hi all,

I have installed JDK 1.5 in my computer. But when i check the version of java in command prompt it shows as java 4.

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

I have also given the classpath in environment variables.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10768


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Setting path for Java
It's not a secret anymore!