Using command prompt and Notepad
Hey all,
I have a book that tells you how to use the command prompt and notepad to run java code. But, when it tells me to run this line in the command prompt it says that its not a found function:
javac HelloWorld.java (which is supposed to compile the java file)
Does anybody know why this doesn't work?
Re: Using command prompt and Notepad
JDK Class path property is not set or set improperly, search this forum and you'll find the right way to do it
Re: Using command prompt and Notepad
search what? command prompt java?
Re: Using command prompt and Notepad
1- Open System properties (Control Panel==>System)
2- Go to the "Advanced tab"
3- Click on the "Environment vars" button
4- In the "System vars" table, make sure you have "CLASSPATH" variable with the value set to the folder containing java JDK
Re: Using command prompt and Notepad