How can I set the PATH variable for javac so I can manually compile my .java works?

前端 未结 9 2165
再見小時候
再見小時候 2020-12-01 23:44

Here\'s the address on my drive:

C:\\Program Files\\Java\\jdk1.6.0_18\\bin

How would I go about setting the path variable so I c

9条回答
  •  悲哀的现实
    2020-12-02 00:30

    Follow the steps given here

    http://www.javaandme.com/

    after setting variable, just navigate to your java file directory in your cmd and type javac "xyx.java"

    or if you don't navigate to the directory, then simply specify the full path of java file

    javac "/xyz.java"

提交回复
热议问题