BlackDevilDev Posted May 11, 2011 Posted May 11, 2011 BUILD FAILED C:\workspace\L2J_CommunityServer\build.xml:38: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre6" this is problem what is this guys,how can fix this problem? the code from Build.xml <target name="compile" depends="init"> <javac destdir="${build.classes}" optimize="on" debug="on" source="1.6" target="1.6" nowarn="off"> <src path="${src}"/> <classpath refid="classpath"/> </javac> </target> <target name="jar" depends="compile"> <jar destfile="${build}/l2jcommunity.jar"> <fileset dir="${build.classes}"/> </jar> <copy todir="${build.dist.community}"> <fileset dir="${build}"> <include name="l2jcommunity.jar"/> </fileset> </copy> </target> <target name="dist" depends="jar"> <copy todir="${build.dist.community}"> <fileset dir="${src}"> <include name="log.cfg"/> <include name="console.cfg"/> </fileset> </copy> <copy todir="${build.dist.libs}"> <fileset dir="${src}/../lib"> <include name="*.jar"/> </fileset> </copy> <copy todir="${build.dist.doc}"> <fileset dir="${basedir}"> <include name="changes.txt"/> <include name="LICENSE.txt"/> <include name="README.txt"/> </fileset> </copy> <copy todir="${build.dist.doc}"> <fileset dir="${src}/../lib"> <include name="*LICENSE*"/> </fileset> </copy> <copy todir="${build.dist.community}"> <fileset dir="dist"> <include name="startCommunityServer.*"/> </fileset> </copy> <fixcrlf srcdir="${build.dist.community}" eol="lf" eof="remove" includes="**/*.sh"/> <fixcrlf srcdir="${build.dist.community}" eol="crlf" eof="remove" includes="**/*.bat"/> <mkdir dir="${build.dist.community}/log"/> <mkdir dir="${build.dist.community}/config"/> <copy todir="${build.dist.community}/config"> <fileset dir="java/config"> <include name="*.properties"/> </fileset> </copy> <zip destfile="${build}/L2J_CommunityServer.zip" basedir="${build.dist}" /> </target> <target name="clean"> <delete dir="${build}"/> </target> </project>
0 FighterBoss Posted May 11, 2011 Posted May 11, 2011 Eclipse itself saying what is wrong.... Set the right path for java to your envirment variables dude.
0 BlackDevilDev Posted May 11, 2011 Author Posted May 11, 2011 ok i fix the problem .plz lock topic :)
Question
BlackDevilDev
BUILD FAILED
C:\workspace\L2J_CommunityServer\build.xml:38: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"
this is problem what is this guys,how can fix this problem?
the code from Build.xml
3 answers to this question
Recommended Posts