• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

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
0
bessie1215
Asked:
bessie1215
  • 3
  • 3
  • 3
  • +2
1 Solution
 
objectsCommented:
add c:\jdk1.2.2 to your PATH
0
 
CEHJCommented:
You need to put the Java installation directory + bin on your path



0
 
objectsCommented:
sorry, should have said add c:\jdk1.2.2\bin to your PATH
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
objectsCommented:
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
 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now