Environment variables for java installation

后端 未结 14 1498
清歌不尽
清歌不尽 2020-11-22 00:52

How to set the environment variables for Java in Windows (the classpath)?

14条回答
  •  生来不讨喜
    2020-11-22 01:16

    The JDK installation instructions explain exactly how to set the PATH, for different versions of Windows.

    Normally you should not set the CLASSPATH environment variable. If you leave it unset, Java will look in the current directory to find classes. You can use the -cp or -classpath command line switch with java or javac.

提交回复
热议问题