Solved

Problem using Java

Posted on 2006-06-27
11
226 Views
Last Modified: 2010-03-31
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
Comment
Question by:bessie1215
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
  • +2
11 Comments
 
LVL 92

Expert Comment

by:objects
ID: 16990521
add c:\jdk1.2.2 to your PATH
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 16990523
You need to put the Java installation directory + bin on your path



0
 
LVL 92

Expert Comment

by:objects
ID: 16990524
sorry, should have said add c:\jdk1.2.2\bin to your PATH
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 30

Expert Comment

by:Mayank S
ID: 16990529
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
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 16990530
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
 
LVL 30

Expert Comment

by:Mayank S
ID: 16990534
Sorry CEHJ's first and Mick's second comments weren't there by then ;-)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 16990541
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
 
LVL 30

Expert Comment

by:Mayank S
ID: 16990552
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
 
LVL 35

Expert Comment

by:girionis
ID: 16990584
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
 

Author Comment

by:bessie1215
ID: 16997696
Yes, Objects is true.
My installation had problem.

Anyway, Thanks for all your contributions!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 16999022
>>My installation had problem.

What problem was that?
0

Featured Post

Technology Partners: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question