File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How do i get Java working? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How do i get Java working?" Watch "How do i get Java working?" New topic
Author

How do i get Java working?

Kay Kumar
Greenhorn

Joined: Feb 28, 2005
Posts: 11
Hi there.

Sorry about this very basic question.

I have installed J2sdk1.4.2_04 (don't know if that makes sense.)

It is installed in my C drive. I have edited the path within the enviromental variables. I have also created a classpath pointing to the correct java.exe file and tools.jar file. However, when i run;

javac HelloUser.java

I get a response of;

'javac' is not recognised as an internal or external command, operable program or batch file

Can anyone help???

Thanks in advance!

Vu Pham
Ranch Hand

Joined: May 28, 2005
Posts: 100
set path = .;C:\J2sdk1.4.2_04\bin
set classpath = .;C:\J2sdk1.4.2_04\lib
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

If you're at the point where you're just trying to get javac to run, then it's best to not set CLASSPATH to anything at all! It is not necessary to set it. Java will work fine with the default setting -- but setting CLASSPATH incorrectly will prevent it from doing anything.


[Jess in Action][AskingGoodQuestions]
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Originally posted by Kay Kumar:
Hi there.

Sorry about this very basic question.

I have installed J2sdk1.4.2_04 (don't know if that makes sense.)

It is installed in my C drive. I have edited the path within the enviromental variables. I have also created a classpath pointing to the correct java.exe file and tools.jar file. However, when i run;

javac HelloUser.java

I get a response of;

'javac' is not recognised as an internal or external command, operable program or batch file

Can anyone help???

Thanks in advance!



This error message indicates that the operating system (Windows?) cannot find the javac.exe program. This probably means that you have not set the PATH environment variable correctly. Try typing

and tell us what the output is. This will help us to figure out what you need to get things to work correctly.

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i get Java working?