OK! Let's begin the end of this case!
BEFORE I JOIN IN JAVARANCH AND POST MY ASK HERE!
----------------------------------------------------------------------------------
I downloaded the jdk-6u18-windows-i586 (version 6-update 18 of JDK for windows) and installed it;
After this I began read a book for Java's starter called in brazilian "USANDO A CABEÇA! JAVA" (maybe you recognize as "HEAD FIRST JAVA" from Kathy Sierra & Bert Bates) and I tried made the Hello World sampled in the book!
I did the code in a simple text editor, more specifically, in Context;
I declared in the ambience variables a new variable called
PATH and I put as value the directory BIN of JDK main local.
So
PATH = (C:\Program Files (x86)\Java\jdk1.6.0_18\bin) BUT I don't create none CLASSPATH
Then I entered in CMD=COMMAND=EMULATION OF DOS and I compiled my code with:
javac C:\JAVA\MyFirstApp.java (THIS DIRECTORY I PUT MY CODES)
Worked the compilation, but when I tried execute with this code:
java C:\JAVA\MyFirstApp (as Henry said-without extension) appear the error (ATTACHED HERE!)
----------------------------------------------------------------------------------
Well, this is how all happened!
Can I help you with this explanation?
Thanks for antention!