Jump to content
  • 0

I have problem with compile (Error:Java_HOme


Question

Posted

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>

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock