which one should JAVA_HOME to point, JDK or JRE

2019-01-13 23:36发布

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 related to Ant, I got the following error messages after typing "ant -version"

image

I searched this forum. Looks like one solution i to point Java to JDK instead of JRE. I am not exactly sure whether this should be the solution. In other words, in general, which one should JAVA_HOME point to JDK or JRE?

7条回答
The star\"
2楼-- · 2019-01-14 00:26

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

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

查看更多
登录 后发表回答