Environment variables for java installation

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

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

14条回答
  •  一个人的身影
    2020-11-22 01:07

    In programming context you can execute SET command (SET classpath=c:\java) or Right click on your computer > properties > advanced > environment variables.

    In a batch file you can use

    SET classpath=c:\java
    java c:\myapplication.class
    

提交回复
热议问题