I'm trying to compile and run java file using the command line, but it's not working. I've followed the steps on http://introcs.cs.princeton.edu/java/15inout/windows-cmd.html , using the correct file path and a current jdk and I still get javac is not recognized
when typing javac -version
. What am I doing wrong?
You need to add the folder where javac
exists to your PATH. It might not be the same path specified in the given link.
请点击此链接以在Windows中为Java设置PATH
和CLASSPATH
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.