Ir para conteúdo
  • Cadastre-se
  • 0

script do java no eclipse


AdmLoco

Pergunta

pessoal ta dando erro aki no eclipse na hora do build (aquele formiguinha)

onde eu tenho que arrumar aki?

eu uso java jdk 7 pq se nao o server nao inicia (freya)

o datapack foi tranquilo mas o l2jserver ta dando erro segue imagen abaixo

O conteúdo está oculto, favor efetuar login ou se cadastrar!

e o scrypt abaixo:

<?xml version="1.0" encoding="UTF-8"?>
<project name="L2J_Server" default="dist" 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.

      

O conteúdo está oculto, favor efetuar login ou se cadastrar!

    </description>

    <property name="src" location="java" />
    <property name="lib" location="lib" />
    <property name="build" location="build" />
    <property name="build.classes" location="${build}/classes" />
    <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.libs" location="${build.dist}/libs" />
    <property name="build.dist.login" location="${build.dist}/login" />

    <path id="classpath">
        <fileset dir="${lib}">
            <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="clean,checkRequirements" description="Create the output directories.">
        <mkdir dir="${build}" />
        <mkdir dir="${build.classes}" />
    </target>

    <target name="compile" depends="init" description="Compile the source.">
        <javac destdir="${build.classes}" compiler="javac1.8" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="1.8" target="1.8">
            <src path="${src}" />
            <classpath refid="classpath" />
        </javac>
    </target>

    <target name="jar" depends="compile" description="Create the jar files">
        <jar destfile="${build.dist.login}/l2jlogin.jar">
            <fileset dir="${build.classes}">
                <exclude name="**/gameserver/**" />
            </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="Implementation-Version" value="${l2j.version}" />
                <attribute name="Main-Class" value="com.l2jserver.loginserver.L2LoginServer" />
            </manifest>
        </jar>
        <jar destfile="${build.dist.game}/l2jserver.jar">
            <fileset dir="${build.classes}">
                <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="Class-Path" value="${manifest.libs}" />
                <attribute name="Implementation-URL" value="http://www.l2jserver.com/" />
                <attribute name="Implementation-Version" value="${l2j.version}" />
                <attribute name="Main-Class" value="com.l2jserver.gameserver.GameServer" />
            </manifest>
        </jar>
    </target>

    <target name="dist" depends="jar">
        <copy todir="${build.dist}">
            <fileset dir="dist" />
        </copy>
        <concat destfile="${build.dist.doc}/L2J_Server_CHANGELOG.txt">${l2j.changelog}</concat>
        <copy todir="${build.dist.game}">
            <fileset dir="misc" />
        </copy>
        <concat destfile="${build.dist.game}/config/l2j-version.properties">version=${l2j.version}${line.separator}builddate=${build.tstamp}</concat>
        <copy todir="${build.dist.libs}">
            <fileset dir="lib" />
        </copy>
        <copy todir="${build.dist.login}">
            <fileset dir="misc" />
        </copy>
        <fixcrlf srcdir="${build.dist.game}" eol="crlf" eof="remove" includes="**/*.bat" />
        <fixcrlf srcdir="${build.dist.game}" eol="lf" eof="remove" includes="**/*.sh" />
        <fixcrlf srcdir="${build.dist.login}" eol="crlf" eof="remove" includes="**/*.bat" />
        <fixcrlf srcdir="${build.dist.login}" eol="lf" eof="remove" includes="**/*.sh" />

        <tstamp>
            <format property="build.date" pattern="yyyy-MM-dd" />
        </tstamp>

        <zip destfile="${build}/L2J_Server_${build.date}.zip" basedir="${build.dist}" />
    </target>

    <target name="clean" description="Remove the output directories">
        <delete dir="${build}" />
    </target>

    <target name="checkRequirements" description="Check Requirements">
        <fail message="Ant 1.8.2 is required. But your version is ${ant.version}">
            <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>
</project>

 

 

 

Editado por AdmLoco
Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts recomendados

  • 0

BUILD FAILED
C:\Users\tucha\git\l2j_server\L2J_Server\build.xml:133: Java 1.8 is required. But your version is Java 1.7 and probably JDK is not installed.

O erro acima é só jogar no tradutor e descobre o motivo, a revisão usa java 1.8 e sua IDE ou projeto está configurada para usar o 1.7 e não vai aceitar compilação até que mude isso ou instale o java 1.8

"Tente ser uma pessoa de valor , não de sucesso" - Albert Einstein

 

 

Link para o comentário
Compartilhar em outros sites


  • 0

Buildfile: C:\Users\tucha\git\l2j_server\L2J_Server\build.xml
clean:
checkRequirements:

BUILD FAILED
C:\Users\tucha\git\l2j_server\L2J_Server\build.xml:133: Java 1.8 is required. But your version is Java 1.7 and probably JDK is not installed.

Total time: 692 milliseconds
 

2 horas atrás, Tayran.JavaDev disse:

Mostre o fim da mensagem de erro, copia ela toda e cola aqui.

 ta ae manin acredito que seja requerimento e acho que vou ter que procurar outra rev pq a minha nao roda no java 8 e eu to gostando tanto dela 

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...




×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.