Should JAVA_HOME point to JDK or JRE?

前端 未结 8 2023
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 00:09

I pointed the JAVA_HOME to C:\\Program Files (x86)\\Java\\jre7. It works fine. Afterwards, I unzipped ant and set up the environment variables rela

相关标签:
8条回答
  • 2020-12-03 01:07

    Simply (change to your jdk1.x.x.x_xx)

    JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05

    0 讨论(0)
  • 2020-12-03 01:07

    as a developer, you should point your JAVA_HOME at jdk to access javac copiler etc. It's good if you can test your program to run on the JRE though. If you are using an app server you often also need the JDK instead of the JRE but that depends on the particular server.

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