|
![]() |
I hadn't been here for fifteen years
Carlos Monge wrote:
When I try to run my Hello World program with - javac HelloWorld.java I get this message
javac: file not found: HelloWorld.java
usage: javac <options> <source files>
use -help for a list of possible options
Carlos Monge wrote:
I use -help and it tells me
'-help' is not recognized as an internal or external command,
operable program or batch file.
I am lost.
Carlos Monge wrote:C:Program Files\Java\jdk1.8.0-60\bin;
Carlos Monge wrote:
I keep getting messages that the computer can't find javac.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Carlos Monge wrote:Here are the four printouts you asked for.
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\cmongeoroplata09>echo %PATH%
C:\Users\cmongeoroplata\Documents\Chapter01;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\ArcSoft\Bin;;C:\mozart\bin;C:\emacs\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\MinGW\bin
C:\Users\cmongeoroplata09>echo %CLASSPATH
%CLASSPATH
C:\Users\cmongeoroplata09>java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
C:\Users\cmongeoroplata09>javac -version
'javac' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\cmongeoroplata09>
C:\Users\cmongeoroplata09>
C:\Users\cmongeoroplata09>
I hadn't been here for fifteen years
Carlos Monge wrote:My Java\jdk1.8.0_60\bin has the appletviewer.
It has a java and javac file but now java.exe ore javac.exe.
I guess I have to uninstall and reinstall.
I hadn't been here for fifteen years
Carlos Monge wrote:Here are the four printouts you asked for.
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\cmongeoroplata09>echo %PATH%
C:\Users\cmongeoroplata\Documents\Chapter01;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\ArcSoft\Bin;;C:\mozart\bin;C:\emacs\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\MinGW\bin
But that correction will only apply to that particular instance of the command line.A few minutes ago, I wrote:. . . The instruction I have just given you should correct that mistake.
I hadn't been here for fifteen years