Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help for the newbie - installation 2

Status
Not open for further replies.

soundmind

Technical User
Jun 30, 2003
16
US
Dear Experts,

This is probably way too easy for you.

But I am having trouble installing Java. I downloaded j2sdk-1_4_2_02-windows-i586-p-iftw.exe and installed it but when I tried to compile a file like this:

c:>javac something.java

It says 'javac ' is not recognized as an internal or external command, operable program or batch file.

What am I missing? Please help. Thank you.
 
Hello,
If you are downloading from Sun Java and your using Windows something, you need to download both the JDK and the SDK.
 
I installed java on my drive I:\jdk14;
If you use winxp, set the environment varible by clicking the "System icon" and "Advanced" setting.
set the environment variable to I:\JDK14\BIN;

create a file called j.bat and the content should be:
SET CLASSPATH=.;I:\jdk14\lib\tools.jar;

To run java in dos prompt, type j(The file you created)
The you can compile and run java
 
Ahhh... RTFM - always the last place you look !!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top