On 23-02-11 17:34, grobs456 wrote:
Here is where I stand:
C:\dev\java>javac HelloWorldApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
JAVAC.exe is nog in your PATH
C:\dev\java>c:\Java\jdk1.6.0_24\bin\javac HelloWorldApp.java
If you add "c:\Java\jdk1.6.0_24\bin\" to your path than you could do
C:\dev\java> javac HelloWorldApp.java
C:\dev\java>c:\Java\jdk1.6.0_24\bin\java HelloWorldApp
and
C:\dev\java> java HelloWorldApp
Hello World!
Path C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:
\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Ruby
\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:
\Program Files (x86)\MySQL\MySQL Server 5.0\bin;%SYSTEMROOT%
\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files
\Teleca Shared;C:\PROGRA~2\IBM\CLIENT~1\Shared;C:\Program Files
(x86)\Common Files\Adobe\AGL;C:\PROGRA~2\IBM\CLIENT~1;C:\PROGRA~2\IBM
\CLIENT~1\Emulator;C:\Program Files (x86)\QuickTime\QTSystem\;C:
\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:
\Program Files (x86)\Windows Live\Shared;%JAVA_HOME%\bin;C:\Perl64\site
\bin;%PERL_HOME%\bin;C:\Java\jre6\bin
wait, the runtime is already in your path (C:\Java\jre6\bin)
therefore this should work already
C:\dev\java> java HelloWorldApp
Take the JRE out of your path and put the JDK into it. The answer is obvious
when you compare your PATH to what you're attempting.