Breaking News
recent

Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre7

IF any time gets the below error:

C:\javaeetutorial5\examples\web\hello2>ant
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
b\tools.jar
Buildfile: C:\javaeetutorial5\examples\web\hello2\build.xml
-pre-init:
init:
default-ear:
-pre-compile:
bpp-actual-compilation:
[echo]Compiling hello2
[echo] javaee.classpath.prefixis: C:\glassfish3/lib
[echo]is.glassfish.v3is: ${is.glassfish.v3}
[javac] C:\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:93
: warning:'includeantruntime' was notset, defaulting to build.sysclasspath=las
t;set to falsefor repeatable builds
BUILD FAILED
C:\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:93:Unable to
find a javac compiler;
com.sun.tools.javac.Mainisnot on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
Itis currently set to "C:\Program Files\Java\jre7"
Total time: 0 seconds


Then do the following things it will resolves the problem:

Give the path as specified below:{ The java paths of your local installed java folders but not the java paths of  the copied folder structure of the java of any version it should be installed and that path should be given .}

USER Variable Setting:

CLASS PATH :
C:\Program Files\Java\jdk1.7.0_72\lib

JAVA_HOME :



C:\Program Files\Java\jdk1.7.0_72


System Variable Setting:

PATH :
C:\Program Files\Java\jdk1.7.0_72\bin

Unknown

Unknown

No comments:

Post a Comment

Powered by Blogger.