Environment variables for java installation

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

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

相关标签:
14条回答
  • 2020-11-22 01:17

    For Windows 7 users:

    Right-click on My Computer, select Properties; Advanced; System Settings; Advanced; Environment Variables. Then find PATH in the second box and set the variable like in the picture below.

    PATH variable editor

    0 讨论(0)
  • 2020-11-22 01:19

    Set java Environment variable in Centos / Linux

    /home/ vi .bashrc

    export JAVA_HOME=/opt/oracle/product/java/jdk1.8.0_45

    export PATH=$JAVA_HOME/bin:$PATH

    java -version

    0 讨论(0)
提交回复
热议问题