Skip to main content

which one should Should JAVA_HOME to point, to JDK or JRE?

I pointed the JAVA_HOME to to C:\Program Files (x86)\Java\jre7 It. It works fine. Afterwards, I unzippedunzipped 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 iis 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?

which one should JAVA_HOME to point, JDK or JRE

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?

Should JAVA_HOME point to JDK or JRE?

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 is 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?

added 4 characters in body
Source Link
0x6C38
  • 7.1k
  • 4
  • 37
  • 49

I pointed the JAVA_HOME to C:\Program Files (x86)\Java\jre7JAVA_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""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?

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?

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?

edited tags
Link
ROMANIA_engineer
  • 57k
  • 30
  • 211
  • 207
Source Link
user297850
  • 8.1k
  • 19
  • 60
  • 79
Loading