Problem using Java

Hi Java Experts,

I have installed jdk1.2.2 under winXP environment.
The installation was successfully.
however, the java doesn't work.
for example, there is no response when I type "java" in the command prompt.

What should I do?

Best Regards,
Bessie
bessie1215Asked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
though it shouldn't be necessary, u sure there wasn't a problem with the instalation?
Did you specify to also install the jre during install?
0
 
objectsCommented:
add c:\jdk1.2.2 to your PATH
0
 
CEHJCommented:
You need to put the Java installation directory + bin on your path



0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
objectsCommented:
sorry, should have said add c:\jdk1.2.2\bin to your PATH
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Run it from C:\jdk1.2.2\bin or add C:\jdk1.2.2\bin to your PATH environment variable.

BTW if you installed just for learning, practicing, etc - try Java 5.0
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Sorry CEHJ's first and Mick's second comments weren't there by then ;-)
0
 
CEHJCommented:
e.g. if you installed in

C:\Program Files\Java\jdk1.2.2

you need to append


C:\Program Files\Java\jdk1.2.2\bin

to your path
0
 
Mayank SAssociate Director - Product EngineeringCommented:
I prefer setting JAVA_HOME to C:\jdk1.2.2 (or whatever) and then pre-pend %JAVA_HOME%\bin in the PATH (not append, because sometimes things like Oracle install their own JVM and come earlier in the Path, causing a menace :) )
0
 
girionisCommented:
As already stated it seems that you need to set the path, for more info on what "path" is have a look here: http://mindprod.com/jgloss/path.html
0
 
bessie1215Author Commented:
Yes, Objects is true.
My installation had problem.

Anyway, Thanks for all your contributions!
0
 
CEHJCommented:
>>My installation had problem.

What problem was that?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.