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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javac ?

Status
Not open for further replies.

josee411

Programmer
May 12, 2003
18
BE
hi,
i tired to compile my class "hello"
i have the following error.

C:\java\bin\examples>javac hello
'javac' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
 
try the following:

javac -classpath .; C:\hello.java

A Couple of thing to note:

1. Make sure the file is called: hello.java.
2. The first line after you import statements should be:
Code:
public class hello


Hope this helps.
 
From reading a previous post of yours, it sounds like you did not install the sdk, but rather the jre. You need the sdk to use javac, and also you need to set your path statement to allow your OS to use the commands found in the bin directory of the j2sdk installation.

 
Sorry, I read another of your posts and see that you did install the sdk. You need to set your path statement to reflect your bin directory of the installation. I am not sure how to do that in win 2000, but in win xp you click in control panel, then system icon, then advanced, then environment variables. You then edit the path variable to include the path to where you installed the j2sdk1.3.1\bin.

Hope this helps.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top