Solved

Problem using Java

Posted on 2006-06-27
11
223 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
  • 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
table example 4 32
How to convert String matching to regex in java 4 50
login jsp example 24 67
printf performancy 11 70
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

860 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