it's a good doc for people who first use java but meet about command line i have a few questions https://lift.cs.princeton.edu/java/windows/
His terminal code like this:
~/Desktop/hello> ls
Barnsley.java COS 126.iml WELCOME.txt logo.png
~/Desktop/hello> javac-introcs Barnsley.java
~/Desktop/hello> java-introcs Barnsley 10000
but in my idea,it uses cmd.exe so ls
should be replaced dir
i know
but when i type javac-introcs Barnsley.java
it tells me
'java-introcs' is not an internal or external command, nor is it a runnable program
Or a batch file.
java-introcs
is clearly something the instructor wrote (could be an alias) -- it is not a Java command. Intro cs (introduction to cs?) must add the various parameters. I suspect that justjavac
andjava
would be sufficient, though whether the instructor's commands added a classpath or something cannot be readily determined.~/Desktop/hello>
) isn't a typicalcmd
prompt, so your idea might be wrong.