|
-
Apr 14th, 2006, 02:59 PM
#1
Thread Starter
Fanatic Member
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?
-
Apr 14th, 2006, 05:58 PM
#2
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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Apr 14th, 2006, 06:20 PM
#3
Thread Starter
Fanatic Member
Re: Using command prompt and Notepad
search what? command prompt java?
-
Apr 14th, 2006, 06:33 PM
#4
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
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Apr 14th, 2006, 11:12 PM
#5
Thread Starter
Fanatic Member
Re: Using command prompt and Notepad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|