Blockland Forums > Modification Help
Command Prompt Error - Solved
Muffin:
Im learning from a teach yourself java book. This is sort of OT since this isn't Torque. But im still hoping someone can help me. Anyways;
I started by doing
class Example1 {
public static void main(String args[]) {
System.out.print1n("This is the output from Example1");
}
}
Then it says i need to compile it. So i open the command prompt and i get to the directory wich in this case its "Desktop/Java Work"
Now it says i need to enter "Javac Example1.java" (Example1 is the file that i am trying to compile).
When i do this it tells me: "'Javac' is not recognizable as an internal or external command, Operable program, or batch file"
It might have been easier to understand if i new how to do the /quote thing so i could put it in the quote box. But if anyone can help me that would be awesome. I hate to be stuck so early
Never mind, Orthone fixed it for me <3
otto-san:
set a java PATH variable? :o
Muffin:
--- Quote from: otto-san on March 26, 2011, 08:53:02 PM ---set a java PATH variable? :o
--- End quote ---
I don't know how to do that. The book didn't tell me that i needed that. If you know. Could you explain?
otto-san:
--- Quote from: Muffin on March 26, 2011, 09:00:09 PM ---I don't know how to do that. The book didn't tell me that i needed that. If you know. Could you explain?
--- End quote ---
Google it.
Muffin:
I googled it. Its beyond my understanding. I just started with the very basics and its only trying to gt me to understand what everything is doing. I'm worried to skip ahead because i might get this problem in the future. I don't think that the path variable is needed because the book simply did not state that it was needed. I know this my sound a little ignorant but still.