l2j Server error eclipse

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
laxsur
Posts: 85
Joined: Thu Jul 25, 2013 10:22 pm

l2j Server error eclipse

Post by laxsur »

build.xml error

line=63

Code: Select all

        <javac srcdir="${src}" classpathref="classpath" destdir="${build.bin}" compiler="javac1.8" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="1.8.0" target="1.8.0"/>

Buildfile: C:\Users\DoA\workspace4.4\L2J_Server_BETA_6641\build.xml
checkRequirements:
getDateAndVersion:
init:
[delete] Deleting directory C:\Users\DoA\workspace4.4\L2J_Server_BETA_6641\build\bin
[mkdir] Created dir: C:\Users\DoA\workspace4.4\L2J_Server_BETA_6641\build\bin
dist:
[sync] Removed 1 dangling file from C:\Users\DoA\workspace4.4\L2J_Server_BETA_6641\build\dist
compile:
[javac] Compiling 1818 source files to C:\Users\DoA\workspace4.4\L2J_Server_BETA_6641\build\bin
[javac] javac: invalid target release: 1.8.0
[javac] Usage: javac <options> <source files>
[javac] use -help for a list of possible options

BUILD FAILED
C:\Users\DoA\workspace4.4\L2J_Server_BETA_6641\build.xml:63: Compile failed; see the compiler error output for details.

Total time: 2 seconds
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: l2j Server error eclipse

Post by Sdw »

You need java 8
laxsur
Posts: 85
Joined: Thu Jul 25, 2013 10:22 pm

Re: l2j Server error eclipse

Post by laxsur »

Sdw wrote:You need java 8
Image

Image


What do I have to configure?
laxsur
Posts: 85
Joined: Thu Jul 25, 2013 10:22 pm

Re: l2j Server error eclipse

Post by laxsur »

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><project name="L2J_Server_BETA" default="build" basedir=".">    <description>        This script will build the L2J Server.         This program is free software; you can redistribute it and/or modify        it under the terms of the GNU General Public License as published by        the Free Software Foundation; either version 3, or (at your option)        any later version.         This program is distributed in the hope that it will be useful,        but WITHOUT ANY WARRANTY; without even the implied warranty of        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the        GNU General Public License for more details.         You should have received a copy of the GNU General Public License        along with this program; if not, write to the Free Software        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA        02111-1307, USA.         http://www.gnu.org/copyleft/gpl.html    </description>     <property name="build" location="build" />    <property name="build.bin" location="${build}/bin" />    <property name="build.dist" location="${build}/dist" />    <property name="build.dist.doc" location="${build.dist}/doc" />    <property name="build.dist.game" location="${build.dist}/game" />    <property name="build.dist.login" location="${build.dist}/login" />    <property name="build.dist.tools" location="${build.dist}/tools" />    <property name="libs" location="dist/libs" />    <property name="src" location="java" />     <path id="classpath">        <fileset dir="${libs}">            <include name="*.jar" />        </fileset>    </path>     <pathconvert property="manifest.libs" pathsep=" ">        <path refid="classpath" />        <mapper>            <chainedmapper>                <flattenmapper />                <globmapper from="*.jar" to="../libs/*.jar" />            </chainedmapper>        </mapper>    </pathconvert>     <target name="init" depends="checkRequirements,getDateAndVersion" description="Create the output directories.">        <delete dir="${build.bin}" quiet="true" />        <mkdir dir="${build.bin}" />    </target>     <target name="dist" depends="init" description="Export the files to the output directory.">        <sync todir="${build.dist}" includeemptydirs="true">            <fileset dir="dist" />        </sync>        <concat destfile="${build.dist.game}/config/l2j-version.properties">version=${l2j.version}${line.separator}builddate=${build.tstamp}</concat>    </target>     <target name="compile" depends="dist" description="Compile the source.">     </target>     <target name="jar" depends="compile" description="Create the jar files.">        <jar destfile="${build.dist.login}/l2jlogin.jar" level="9">            <fileset dir="${build.bin}">                <exclude name="**/dbinstaller/**" />                <exclude name="**/gameserver/**" />            </fileset>            <manifest>                <attribute name="Built-By" value="${user.name}" />                <attribute name="Built-Date" value="${build.tstamp}" />                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />            </manifest>        </jar>        <jar destfile="${build.dist.login}/L2J_Configurator.jar" level="9">            <fileset dir="${build.bin}">                <include name="**/configurator/**" />                <include name="**/i18n/**" />                <include name="**/images/**" />                <exclude name="**/accountmanager/**" />                <exclude name="**/dbinstaller/**" />                <exclude name="**/gameserver/**" />                <exclude name="**/gsregistering/**" />                <exclude name="**/log/**" />                <exclude name="**/loginserver/**" />                <exclude name="**/ngl/**" />                <exclude name="**/status/**" />                <exclude name="**/util/**" />                <exclude name="**/Config/**" />                <exclude name="**/L2DatabaseFactory/**" />                <exclude name="**/Server/**" />            </fileset>            <manifest>                <attribute name="Built-By" value="${user.name}" />                <attribute name="Built-Date" value="${build.tstamp}" />                <attribute name="Class-Path" value="${manifest.libs}" />                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />                <attribute name="Main-Class" value="com.l2jserver.tools.configurator.ConfigUserInterface" />            </manifest>        </jar>        <jar destfile="${build.dist.game}/l2jserver.jar" level="9">            <fileset dir="${build.bin}">                <exclude name="**/dbinstaller/**" />                <exclude name="**/loginserver/**" />                <exclude name="**/accountmanager/**" />                <exclude name="**/gsregistering/**" />            </fileset>            <manifest>                <attribute name="Built-By" value="${user.name}" />                <attribute name="Built-Date" value="${build.tstamp}" />                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />            </manifest>        </jar>        <jar destfile="${build.dist.game}/L2J_Configurator.jar" level="9">            <fileset dir="${build.bin}">                <include name="**/configurator/**" />                <include name="**/i18n/**" />                <include name="**/images/**" />                <exclude name="**/accountmanager/**" />                <exclude name="**/dbinstaller/**" />                <exclude name="**/gameserver/**" />                <exclude name="**/gsregistering/**" />                <exclude name="**/log/**" />                <exclude name="**/loginserver/**" />                <exclude name="**/ngl/**" />                <exclude name="**/status/**" />                <exclude name="**/util/**" />                <exclude name="**/Config/**" />                <exclude name="**/L2DatabaseFactory/**" />                <exclude name="**/Server/**" />            </fileset>            <manifest>                <attribute name="Built-By" value="${user.name}" />                <attribute name="Built-Date" value="${build.tstamp}" />                <attribute name="Class-Path" value="${manifest.libs}" />                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />                <attribute name="Main-Class" value="com.l2jserver.tools.configurator.ConfigUserInterface" />            </manifest>        </jar>        <jar destfile="${build.dist.tools}/dbinst_cs.jar" level="9">            <fileset dir="${build.bin}">                <include name="**/dbinstaller/**" />                <include name="**/images/**" />                <include name="**/util/**" />                <include name="**/SQLFilter**" />                <exclude name="**/LauncherGS*" />                <exclude name="**/LauncherLS*" />            </fileset>            <manifest>                <attribute name="Built-By" value="${user.name}" />                <attribute name="Built-Date" value="${build.tstamp}" />                <attribute name="Class-Path" value="${manifest.libs}" />                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />                <attribute name="Main-Class" value="com.l2jserver.tools.dbinstaller.LauncherCS" />            </manifest>        </jar>        <jar destfile="${build.dist.tools}/dbinst_gs.jar" level="9">            <fileset dir="${build.bin}">                <include name="**/dbinstaller/**" />                <include name="**/images/**" />                <include name="**/util/**" />                <include name="**/SQLFilter**" />                <exclude name="**/LauncherCS*" />                <exclude name="**/LauncherLS*" />            </fileset>            <manifest>                <attribute name="Built-By" value="${user.name}" />                <attribute name="Built-Date" value="${build.tstamp}" />                <attribute name="Class-Path" value="${manifest.libs}" />                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />                <attribute name="Main-Class" value="com.l2jserver.tools.dbinstaller.LauncherGS" />            </manifest>        </jar>        <jar destfile="${build.dist.tools}/dbinst_ls.jar" level="9">            <fileset dir="${build.bin}">                <include name="**/dbinstaller/**" />                <include name="**/images/**" />                <include name="**/util/**" />                <include name="**/SQLFilter**" />                <exclude name="**/LauncherCS*" />                <exclude name="**/LauncherGS*" />            </fileset>            <manifest>                <attribute name="Built-By" value="${user.name}" />                <attribute name="Built-Date" value="${build.tstamp}" />                <attribute name="Class-Path" value="${manifest.libs}" />                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />                <attribute name="Main-Class" value="com.l2jserver.tools.dbinstaller.LauncherLS" />            </manifest>        </jar>    </target>     <target name="build" depends="jar" description="Create the Zip file.">        <zip destfile="${build}/L2J_Server_BETA.zip" basedir="${build.dist}" level="9" />    </target>     <target name="checkRequirements" description="Check Requirements.">        <fail message="Ant 1.8.2 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">            <condition>                <not>                    <antversion atleast="1.8.2" />                </not>            </condition>        </fail>        <available classname="java.util.stream.Stream" property="JDK8.present" />        <fail unless="JDK8.present" message="Java 1.8 is required. But your version is Java ${ant.java.version} and probably JDK is not installed." />    </target>     <target name="getDateAndVersion" description="Get Date and Version.">        <tstamp>            <format property="build.tstamp" pattern="dd/MM/yyyy HH:mm" />        </tstamp>        <exec dir="${basedir}" executable="svnversion" outputproperty="l2j.version">            <arg value="-c" />            <redirector>                <outputfilterchain>                    <tokenfilter>                        <replaceregex pattern="[0-9]+\:" replace="" />                    </tokenfilter>                </outputfilterchain>            </redirector>        </exec>    </target></project>
so because I work?
laxsur
Posts: 85
Joined: Thu Jul 25, 2013 10:22 pm

Re: l2j Server error eclipse

Post by laxsur »

I can not compile
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: l2j Server error eclipse

Post by UnAfraid »

Image
Image
Image
laxsur
Posts: 85
Joined: Thu Jul 25, 2013 10:22 pm

Re: l2j Server error eclipse

Post by laxsur »

UnAfraid wrote:Image
Image

is configured as in the photos, but the same error

Image
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: l2j Server error eclipse

Post by UnAfraid »

Which eclipse version do you have?
Image
HorridoJoho
L2j Senior Developer
L2j Senior Developer
Posts: 795
Joined: Sun Aug 14, 2005 11:27 am

Re: l2j Server error eclipse

Post by HorridoJoho »

Update your Eclipse.

If you are still using KEPLER, you need the support patch for it from the market place.
The latest Eclipse LUNA has java 8 support already.

If you would look at the error closely, you would have already spotted that the java compiler yells about the source as being 1.8.0, which it does not support because the eclipse you're using has an older ANT Runtime which in this case don't calls java 8 compilers.
laxsur
Posts: 85
Joined: Thu Jul 25, 2013 10:22 pm

Re: l2j Server error eclipse

Post by laxsur »

Eclipse LUNA 4.4
User avatar
Zealar
L2j Veteran
L2j Veteran
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: l2j Server error eclipse

Post by Zealar »

laxsur wrote: Image
Why you select Jre need to be Jdk
laxsur
Posts: 85
Joined: Thu Jul 25, 2013 10:22 pm

Re: l2j Server error eclipse

Post by laxsur »

Zealar wrote:
laxsur wrote: Image
Why you select Jre need to be Jdk

:lol: :lol: :lol: thanks I did not realize, now it works
User avatar
Zealar
L2j Veteran
L2j Veteran
Posts: 1236
Joined: Sun Jul 15, 2007 10:29 am

Re: l2j Server error eclipse

Post by Zealar »

Good for you :)
Post Reply