Hello all!
I'm currently using textpad 7 and I am having some problems running a script. I'm trying to run the basic
public class HelloWorld
{
public static void main (
String[] args)
{
System.out.println("Hello World!");
}
}
At first I didn't have the compile and run commands but I fixed that. When I compile it, it generates a .java file no problem. When I run it however it states:
Error: could not find or load main class hello
press any key to continue.
I noticed textpad didn't generate a .class file. I attempted to do it manually with the cmd prompt. I used cd to browse to the directory my hello.java file was in. I then typed in:
javac hello.java
I received this error:
'javac' is not a recognized as an internal or external command, operable program or batch file.
my JDK and textapd 7 is installed properly and I don't know where to go from here.
Please help!