Проблема при компиле.

Статус
В этой теме нельзя размещать новые ответы.

Ayako

Прославленный
Местный
Старожил I степени
Сообщения
300
Розыгрыши
0
Репутация
119
Реакции
209
Баллы
1 438
Хроники
  1. Chaotic Throne: High Five
Исходники
Присутствуют
Сборка
l2open, L2Scripts-20720
Ребят я чето непойму при компилировании в идеа вот такая ошибка, Исходы скриптов хфа и л2овпен
Код:
D:\L2j\L2Scripts-20720\build.xml:106: Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1425)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1133)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
    at org.apache.tools.ant.Task.perform(Task.java:350)
    at org.apache.tools.ant.Target.execute(Target.java:449)
    at org.apache.tools.ant.Target.performTasks(Target.java:470)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:834)
    at org.apache.tools.ant.Main.startAnt(Main.java:223)
    at org.apache.tools.ant.Main.start(Main.java:190)
    at org.apache.tools.ant.Main.main(Main.java:274)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:577)
    at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:31)
недавно полетел диск, пришлось чтото переделывать, но сис файлы вроде не трогал. но вот такой прикол теперь...
я так предпологаю что чтото с антом, но в идеа модуль установлен. Хз что делать)
 
Последнее редактирование:
òbi,
Код:
<?xml version="1.0" encoding="UTF-8"?>
<project name="L2-Scripts-HIGH_FIVE" default="full-dist" basedir=".">

    <property name="build.version" value="1.0" />

    <property name="debug" value="on" />

    <property name="src.gameserver" location="gameserver/src/main/java" />
    <property name="src.authserver" location="authserver/src/main/java" />
    <property name="src.commons" location="commons/src/main/java" />
    <property name="src.scripts" location="dist/gameserver/data"/>

    <property name="dist" location="dist" />
    <property name="dist.gameserver" location="${dist}/gameserver" />
    <property name="dist.authserver" location="${dist}/authserver" />
    <property name="info" location="info" />
    <property name="lib" location="lib" />
    <!--<property name="optional" location="optional" />-->

    <property name="build" location="build" />
    <property name="build.classes" location="${build}/classes" />

    <property name="build.dist" location="${build}/dist" />
    <property name="build.dist.authserver" location="${build.dist}/authserver" />
    <property name="build.dist.gameserver" location="${build.dist}/gameserver" />
    <property name="build.dist.info" location="${build.dist}/info" />
    <!--<property name="build.dist.gameserver.optional" location="${build.dist.gameserver}/optional" />-->

    <path id="classpath">
        <fileset dir="${lib}">
            <include name="**/*.jar" />
        </fileset>
    </path>

    <pathconvert property="jar.list" pathsep=" " refid="classpath">
        <mapper type="flatten" />
    </pathconvert>

    <property name="build.classpath" refid="classpath"/>

    <tstamp>
        <format property="build.tstamp" pattern="yyyy.MM.dd HH:mm" />
    </tstamp>

    <target name="clean" description="Remove the output directories.">

        <delete dir="${build}" />

    </target>

    <target name="init" depends="clean" description="Create the output directories.">

        <input addProperty="build-owner" message="Enter the owner of this build:"/>

        <mkdir dir="${build}" />

    </target>

    <target name="compile-commons" depends="init" description="Compile commons source.">

        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />

        <javac srcdir="${src.commons}" destdir="${build.classes}" optimize="on" debug="${debug}" source="1.8" target="1.8" includeantruntime="false" encoding="UTF-8" nowarn="off" classpath="${build.classpath}">
            <compilerarg value="-Xlint:all,-serial" />
        </javac>

    </target>

    <target name="commons-jar" depends="compile-commons" description="Compile commons source and make lib.">

        <exec dir="${basedir}" executable="svnversion" outputproperty="build.revision" failifexecutionfails="false">
            <arg line="-n ${src.commons}" />
        </exec>

        <jar destfile="${build}/commons.jar">
            <fileset dir="${build.classes}" />
            <manifest>
                <attribute name="Build-By" value="${user.name}" />
                <attribute name="Build-Date" value="${build.tstamp}" />
                <attribute name="Implementation-Build" value="${build.revision}" />
                <attribute name="Implementation-Version" value="${build.version}" />
                <attribute name="Build-Owner" value="Sorin" />
            </manifest>
        </jar>

        <copy todir="${dist.authserver}/lib">
            <fileset dir="${build}">
                <include name="commons.jar" />
            </fileset>
        </copy>

        <copy todir="${dist.gameserver}/lib">
            <fileset dir="${build}">
                <include name="commons.jar" />
            </fileset>
        </copy>

    </target>

    <target name="compile-gameserver" depends="init" description="Compile gameserver source.">

        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />

        <javac srcdir="${src.gameserver}" destdir="${build.classes}" optimize="on" debug="${debug}" source="1.8" target="1.8" includeantruntime="false" encoding="UTF-8" nowarn="off" classpath="${build.classpath}:${dist.gameserver}/lib/commons.jar">
            <compilerarg value="-Xlint:all,-serial" />
        </javac>

    </target>

    <target name="gameserver-jar" depends="compile-gameserver" description="Compile gameserver source and make lib.">

        <exec dir="${basedir}" executable="svnversion" outputproperty="build.revision" failifexecutionfails="false">
            <arg line="-n ${src.gameserver}" />
        </exec>

        <jar destfile="${build}/gameserver.jar">
            <fileset dir="${build.classes}" />
            <manifest>
                <attribute name="Main-Class" value="l2s.gameserver.GameServer" />
                <attribute name="Class-Path" value="${jar.list} commons.jar" />
                <attribute name="Build-By" value="${user.name}" />
                <attribute name="Build-Date" value="${build.tstamp}" />
                <attribute name="Implementation-Build" value="${build.revision}" />
                <attribute name="Implementation-Version" value="${build.version}" />
                <attribute name="Build-Owner" value="Sorin" />
            </manifest>
        </jar>

        <copy todir="${build}">
            <fileset dir="${dist.gameserver}/lib">
                <include name="commons.jar" />
            </fileset>
        </copy>

        <delete dir="${dist.gameserver}/lib" />
        <mkdir dir="${dist.gameserver}/lib" />

        <copy todir="${dist.gameserver}/lib">
            <fileset dir="${lib}">
                <include name="*.jar" />
            </fileset>
            <fileset dir="${build}">
                <include name="gameserver.jar" />
                <include name="commons.jar" />
            </fileset>
        </copy>
    </target>

    <target name="gameserver" depends="gameserver-jar" description="Compile gameserver source and make dist.">

        <mkdir dir="${build.dist}" />
        <mkdir dir="${build.dist.gameserver}" />
        <mkdir dir="${build.dist.gameserver}/lib" />
        <!--<mkdir dir="${build.dist.gameserver.optional}" />-->

        <sync todir="${build.dist.gameserver}" includeEmptyDirs="true">
            <fileset dir="${dist}/gameserver"/>
        </sync>

        <!--<sync todir="${build.dist.gameserver.optional}" includeEmptyDirs="true">
            <fileset dir="${optional}"/>
        </sync>-->

        <copy todir="${build.dist.gameserver}/lib">
            <fileset dir="${lib}">
                <include name="*.jar" />
            </fileset>
            <fileset dir="${build}">
                <include name="gameserver.jar" />
                <include name="commons.jar" />
            </fileset>
        </copy>

        <fixcrlf srcdir="${build.dist.gameserver}" eol="lf" eof="remove" includes="**/*.sh">
        </fixcrlf>

        <fixcrlf srcdir="${build.dist.gameserver}" eol="crlf" eof="remove" includes="**/*.bat">
        </fixcrlf>

        <delete dir="${build.classes}" />

        <!--<copy todir="${build.dist.gameserver}" preservelastmodified="true">
            <fileset dir="${dist}/gameserver">
                <include name="**/*.*"/>
                <exclude name="/data/scripts" />
                <exclude name="/data/scripts/*" />
                <exclude name="/data/scripts/**/*" />
            </fileset>
        </copy>-->
    </target>

    <target name="compile-scripts" depends="init" description="Compile scripts source.">

        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />

        <javac destdir="${build.classes}" optimize="on" debug="on" source="1.8" target="1.8" encoding="UTF-8" includeantruntime="false" nowarn="off" classpath="${build.classpath}:${dist.gameserver}/lib/commons.jar:${dist.gameserver}/lib/gameserver.jar">
            <compilerarg value="-Xlint:all,-serial" />
            <src path="${src.scripts}"/>
            <classpath refid="classpath"/>
        </javac>

    </target>

    <target name="scripts-jar" depends="compile-scripts" description="Compile scripts source and make lib.">

        <jar destfile="${build}/scripts.jar" level="9">
            <fileset dir="${build.classes}"/>
            <manifest>
                <attribute name="Main-Class" value="l2s.gameserver.GameServer"/>
                <attribute name="Class-Path" value="${jar.list} commons.jar" />
                <attribute name="Build-By" value="${user.name}"/>
                <attribute name="Build-Date" value="${build.tstamp}"/>
                <attribute name="Build-Owner" value="Sorin" />
            </manifest>
        </jar>
 
    </target>

    <target name="scripts" depends="scripts-jar" description="Compile scripts source and make dist.">

        <copy todir="${build.dist.gameserver}/lib">
            <fileset dir="${build}">
                <include name="scripts.jar" />
            </fileset>
        </copy>

    </target>

    <target name="compile-authserver" depends="init" description="Compile authserver source.">

        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />

        <javac srcdir="${src.authserver}" optimize="on" destdir="${build.classes}" debug="${debug}" source="1.8" target="1.8" includeantruntime="false" encoding="UTF-8" nowarn="off" classpath="${build.classpath}:${dist.authserver}/lib/commons.jar">
            <compilerarg value="-Xlint:all,-serial" />
        </javac>

    </target>

    <target name="authserver-jar" depends="compile-authserver" description="Compile authserver source and make lib.">

        <exec dir="${basedir}" executable="svnversion" outputproperty="build.revision" failifexecutionfails="false">
            <arg line="-n ${src.authserver}" />
        </exec>

        <jar destfile="${build}/authserver.jar">
            <fileset dir="${build.classes}" />
            <manifest>
                <attribute name="Main-Class" value="l2s.authserver.AuthServer" />
                <attribute name="Class-Path" value="${jar.list} commons.jar" />
                <attribute name="Build-By" value="${user.name}" />
                <attribute name="Build-Date" value="${build.tstamp}" />
                <attribute name="Implementation-Build" value="${build.revision}" />
                <attribute name="Implementation-Version" value="${build.version}" />
                <attribute name="Build-Owner" value="Sorin" />
            </manifest>
        </jar>

        <copy todir="${build}">
            <fileset dir="${dist.authserver}/lib">
                <include name="commons.jar" />
            </fileset>
        </copy>

        <delete dir="${dist.authserver}/lib" />
        <mkdir dir="${dist.authserver}/lib" />

        <copy todir="${dist.authserver}/lib">
            <fileset dir="${lib}">
                <include name="*.jar" />
            </fileset>
            <fileset dir="${build}">
                <include name="authserver.jar" />
                <include name="commons.jar" />
            </fileset>
        </copy>
    </target>

    <target name="authserver" depends="authserver-jar" description="Compile authserver source and make dist.">

        <mkdir dir="${build.dist}" />
        <mkdir dir="${build.dist.authserver}" />
        <mkdir dir="${build.dist.authserver}/lib" />

        <sync todir="${build.dist.authserver}" includeEmptyDirs="true">
            <fileset dir="${dist}/authserver"/>
        </sync>

        <copy todir="${build.dist.authserver}/lib">
            <fileset dir="${lib}">
                <include name="*.jar" />
            </fileset>
            <fileset dir="${build}">
                <include name="authserver.jar" />
                <include name="commons.jar" />
            </fileset>
        </copy>

        <fixcrlf srcdir="${build.dist.authserver}" eol="lf" eof="remove" includes="**/*.sh">
        </fixcrlf>

        <fixcrlf srcdir="${build.dist.authserver}" eol="crlf" eof="remove" includes="**/*.bat">
        </fixcrlf>

        <delete dir="${build.classes}" />

    </target>

    <target name="full-jar" depends="commons-jar, authserver-jar, gameserver-jar, scripts-jar" description="Compile all source and make jar libraries.">

    </target>

    <target name="authserver-dist" depends="commons-jar, authserver-jar" description="Compile authserver source and make dist archive.">
        <zip destfile="${build}/L2-Scripts(HighFive-GoD)_authserver-dist_${build.revision}.zip" encoding="UTF-8" level="9" comment="L2-Scripts.com | Auth Server: VERSION[Helios] BUILD[${build.revision}] DATE[${build.tstamp}] | Builded for: Sorin">
            <zipfileset dir="${dist.authserver}" prefix="authserver"/>
        </zip>
    </target>

    <target name="gameserver-dist" depends="commons-jar, gameserver-jar" description="Compile gameserver source and make dist archive.">
        <zip destfile="${build}/L2-Scripts(HighFive-GoD)_gameserver-dist_${build.revision}.zip" encoding="UTF-8" level="9" comment="L2-Scripts.com | Game Server: VERSION[Helios] BUILD[${build.revision}] DATE[${build.tstamp}] | Builded for: Sorin">
            <zipfileset dir="${dist.gameserver}" prefix="gameserver"/>
        </zip>
    </target>

    <target name="full-dist" depends="full-jar" description="Compile all source and make dist archive.">
        <zip destfile="${build}/L2-Scripts(HighFive-GoD)_full-dist_${build.revision}.zip" basedir="${dist}" encoding="UTF-8" level="9" comment="L2-Scripts.com | Full Server: VERSION[Helios] BUILD[${build.revision}] DATE[${build.tstamp}] | Builded for: Sorin">
            <zipfileset dir="${info}" prefix="info"/>
        </zip>
    </target>
</project>
вот прям целиковый build
106 строка

<javac srcdir="${src.gameserver}" destdir="${build.classes}" optimize="on" debug="${debug}" source="1.8" target="1.8" includeantruntime="false" encoding="UTF-8" nowarn="off" classpath="${build.classpath}:${dist.gameserver}/lib/commons.jar">
 
Последнее редактирование:
XML:
<javac ... source="1.8" target="1.8" ...>
    <compilerarg value="-Xlint:all,-serial" />
</javac>
Указана ява 1.8 по мимо прочего. Может дело в этом?

Проверяем настройки проекта, какая версия jdk указана. Ну и все что связанно в настройках проекта с java.

Можно еще попробовать установить отдельно ант, настроить переменные среды (JAVA_HOME) указав путь до jdk 1.8 и попытаться собрать без среды разработки через консоль
Bash:
cd /d D:\L2j\L2Scripts-20720
ant -f build.xml
 
XML:
<javac ... source="1.8" target="1.8" ...>
    <compilerarg value="-Xlint:all,-serial" />
</javac>
Указана ява 1.8 по мимо прочего. Может дело в этом?

Проверяем настройки проекта, какая версия jdk указана. Ну и все что связанно в настройках проекта с java.

Можно еще попробовать установить отдельно ант, настроить переменные среды (JAVA_HOME) указав путь до jdk 1.8 и попытаться собрать без среды разработки через консоль
Bash:
cd /d D:\L2j\L2Scripts-20720
ant -f build.xml
но вот сейчас попробывал собрать эпилог от эмурт все хорошо
тут вобще указана 1.7
Код:
"C:\Program Files\Java\jdk-18.0.1.1\bin\java.exe" -Xmx512m -Xss2m "-Dant.home=C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.1\lib\ant" "-Dant.library.dir=C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.1\lib\ant\lib" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk-18.0.1.1!\java.base;C:\Program Files\Java\jdk-18.0.1.1!\java.compiler;C:\Program Files\Java\jdk-18.0.1.1!\java.datatransfer;C:\Program Files\Java\jdk-18.0.1.1!\java.desktop;C:\Program Files\Java\jdk-18.0.1.1!\java.instrument;C:\Program Files\Java\jdk-18.0.1.1!\java.logging;C:\Program Files\Java\jdk-18.0.1.1!\java.management;C:\Program Files\Java\jdk-18.0.1.1!\java.management.rmi;C:\Program Files\Java\jdk-18.0.1.1!\java.naming;C:\Program Files\Java\jdk-18.0.1.1!\java.net.http;C:\Program Files\Java\jdk-18.0.1.1!\java.prefs;C:\Program Files\Java\jdk-18.0.1.1!\java.rmi;C:\Program Files\Java\jdk-18.0.1.1!\java.scripting;C:\Program Files\Java\jdk-18.0.1.1!\java.se;C:\Program Files\Java\jdk-18.0.1.1!\java.security.jgss;C:\Program Files\Java\jdk-18.0.1.1!\java.security.sasl;C:\Program Files\Java\jdk-18.0.1.1!\java.smartcardio;C:\Program Files\Java\jdk-18.0.1.1!\java.sql;C:\Program Files\Java\jdk-18.0.1.1!\java.sql.rowset;C:\Program Files\Java\jdk-18.0.1.1!\java.transaction.xa;C:\Program Files\Java\jdk-18.0.1.1!\java.xml;C:\Program Files\Java\jdk-18.0.1.1!\java.xml.crypto;C:\Program Files\Java\jdk-18.0.1.1!\jdk.accessibility;C:\Program Files\Java\jdk-18.0.1.1!\jdk.attach;C:\Program Files\Java\jdk-18.0.1.1!\jdk.charsets;C:\Program Files\Java\jdk-18.0.1.1!\jdk.compiler;C:\Program Files\Java\jdk-18.0.1.1!\jdk.crypto.cryptoki;C:\Program Files\Java\jdk-18.0.1.1!\jdk.crypto.ec;C:\Program Files\Java\jdk-18.0.1.1!\jdk.crypto.mscapi;C:\Program Files\Java\jdk-18.0.1.1!\jdk.dynalink;C:\Program Files\Java\jdk-18.0.1.1!\jdk.editpad;C:\Program Files\Java\jdk-18.0.1.1!\jdk.hotspot.agent;C:\Program Files\Java\jdk-18.0.1.1!\jdk.httpserver;C:\Program Files\Java\jdk-18.0.1.1!\jdk.incubator.foreign;C:\Program Files\Java\jdk-18.0.1.1!\jdk.incubator.vector;C:\Program Files\Java\jdk-18.0.1.1!\jdk.internal.ed;C:\Program Files\Java\jdk-18.0.1.1!\jdk.internal.jvmstat;C:\Program Files\Java\jdk-18.0.1.1!\jdk.internal.le;C:\Program Files\Java\jdk-18.0.1.1!\jdk.internal.opt;C:\Program Files\Java\jdk-18.0.1.1!\jdk.internal.vm.ci;C:\Program Files\Java\jdk-18.0.1.1!\jdk.internal.vm.compiler;C:\Program Files\Java\jdk-18.0.1.1!\jdk.internal.vm.compiler.management;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jartool;C:\Program Files\Java\jdk-18.0.1.1!\jdk.javadoc;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jcmd;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jconsole;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jdeps;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jdi;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jdwp.agent;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jfr;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jlink;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jpackage;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jshell;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jsobject;C:\Program Files\Java\jdk-18.0.1.1!\jdk.jstatd;C:\Program Files\Java\jdk-18.0.1.1!\jdk.localedata;C:\Program Files\Java\jdk-18.0.1.1!\jdk.management;C:\Program Files\Java\jdk-18.0.1.1!\jdk.management.agent;C:\Program Files\Java\jdk-18.0.1.1!\jdk.management.jfr;C:\Program Files\Java\jdk-18.0.1.1!\jdk.naming.dns;C:\Program Files\Java\jdk-18.0.1.1!\jdk.naming.rmi;C:\Program Files\Java\jdk-18.0.1.1!\jdk.net;C:\Program Files\Java\jdk-18.0.1.1!\jdk.nio.mapmode;C:\Program Files\Java\jdk-18.0.1.1!\jdk.random;C:\Program Files\Java\jdk-18.0.1.1!\jdk.sctp;C:\Program Files\Java\jdk-18.0.1.1!\jdk.security.auth;C:\Program Files\Java\jdk-18.0.1.1!\jdk.security.jgss;C:\Program Files\Java\jdk-18.0.1.1!\jdk.unsupported;C:\Program Files\Java\jdk-18.0.1.1!\jdk.unsupported.desktop;C:\Program Files\Java\jdk-18.0.1.1!\jdk.xml.dom;C:\Program Files\Java\jdk-18.0.1.1!\jdk.zipfs;C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.1\lib\ant\lib\ant.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2022.1.1\lib\idea_rt.jar" com.intellij.rt.ant.execution.AntMain2 -logger com.intellij.rt.ant.execution.IdeaAntLogger2 -inputhandler com.intellij.rt.ant.execution.IdeaInputHandler -buildfile D:\L2j\emurt-ep\build-full.xml
build-full.xml
checkRequirements
Check ANT version
Check JDK version
init
compile-commons
Deleting directory D:\L2j\emurt-ep\build\classes
Created dir: D:\L2j\emurt-ep\build\classes
Compiling 92 source files to D:\L2j\emurt-ep\build\classes
Note: D:\L2j\emurt-ep\java\l2p\commons\time\cron\SchedulingPattern.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
commons-jar
Execute failed: java.io.IOException: Cannot run program ".\lib_svn\svnversion" (in directory "D:\L2j\emurt-ep"): CreateProcess error=2, Не удается найти указанный файл
Current Revision ${build.revision}
Building jar: D:\L2j\emurt-ep\build\commons.jar
compile-loginserver
Deleting directory D:\L2j\emurt-ep\build\classes
Created dir: D:\L2j\emurt-ep\build\classes
Compiling 61 source files to D:\L2j\emurt-ep\build\classes
Note: D:\L2j\emurt-ep\java\l2p\loginserver\LoginServer.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
loginserver-jar
Execute failed: java.io.IOException: Cannot run program ".\lib_svn\svnversion" (in directory "D:\L2j\emurt-ep"): CreateProcess error=2, Не удается найти указанный файл
Building jar: D:\L2j\emurt-ep\build\loginserver.jar
loginserver
Copying 2 files to D:\L2j\emurt-ep\build\dist\lib
compile-gameserver
Deleting directory D:\L2j\emurt-ep\build\classes
Created dir: D:\L2j\emurt-ep\build\classes
Compiling 1721 source files to D:\L2j\emurt-ep\build\classes
D:\L2j\emurt-ep\java\l2p\gameserver\Config.java:195: warning: [unchecked] unchecked conversion
    public static List<Location> HEIN_FIELDS_LOCATIONS = new ArrayList();
                                                         ^
  required: List<Location>
  found:    ArrayList
D:\L2j\emurt-ep\java\l2p\gameserver\Config.java:1374: warning: [unchecked] unchecked conversion
    public static Map<String, double[]> QUEST_RATES = new HashMap();
                                                      ^
  required: Map<String,double[]>
  found:    HashMap
D:\L2j\emurt-ep\java\l2p\gameserver\model\instances\RaidBossInstance.java:182: warning: [unchecked] unchecked cast
                        ((Set<Player>) info[0]).add(p);
                                           ^
  required: Set<Player>
  found:    Object
D:\L2j\emurt-ep\java\l2p\gameserver\model\instances\RaidBossInstance.java:188: warning: [unchecked] unchecked cast
                        ((Set<Player>) info[0]).add(p);
                                           ^
  required: Set<Player>
  found:    Object
D:\L2j\emurt-ep\java\l2p\gameserver\model\instances\RaidBossInstance.java:192: warning: [unchecked] unchecked cast
                ((Set<Player>) info[0]).add(player);
                                   ^
  required: Set<Player>
  found:    Object
D:\L2j\emurt-ep\java\l2p\gameserver\model\instances\RaidBossInstance.java:199: warning: [unchecked] unchecked cast
            Set<Player> players = (HashSet<Player>) groupInfo[0];
                                                             ^
  required: HashSet<Player>
  found:    Object
D:\L2j\emurt-ep\java\l2p\gameserver\instancemanager\UnderGroundColliseumManager.java:41: warning: [unchecked] unchecked conversion
            this._coliseums = new HashMap();
                              ^
  required: HashMap<String,Coliseum>
  found:    HashMap
D:\L2j\emurt-ep\java\l2p\gameserver\model\entity\Coliseum.java:482: warning: [unchecked] unchecked call to add(E) as a member of the raw type ArrayList
                        toDel.add(party);
                                 ^
  where E is a type-variable:
    E extends Object declared in class ArrayList
D:\L2j\emurt-ep\java\l2p\gameserver\model\entity\events\impl\FantasiIsleParadEvent.java:9: warning: [unchecked] unchecked method invocation: constructor <init> in class GlobalEvent is applied to given types
      super(set);
           ^
  required: MultiValueSet<String>
  found:    MultiValueSet
D:\L2j\emurt-ep\java\l2p\gameserver\model\entity\events\impl\FantasiIsleParadEvent.java:9: warning: [unchecked] unchecked conversion
      super(set);
            ^
  required: MultiValueSet<String>
  found:    MultiValueSet
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
10 warnings
gameserver-jar
Execute failed: java.io.IOException: Cannot run program ".\lib_svn\svnversion" (in directory "D:\L2j\emurt-ep"): CreateProcess error=2, Не удается найти указанный файл
Current Revision ${build.revision}
Building jar: D:\L2j\emurt-ep\build\gameserver.jar
gameserver
Copying 1 file to D:\L2j\emurt-ep\build\dist\lib
Deleting directory D:\L2j\emurt-ep\build\classes
compile-scripts
Copying 2 files to D:\L2j\emurt-ep\lib
Created dir: D:\L2j\emurt-ep\build\classes
Compiling 1097 source files to D:\L2j\emurt-ep\build\classes
scripts-jar
Execute failed: java.io.IOException: Cannot run program ".\lib_svn\svnversion" (in directory "D:\L2j\emurt-ep"): CreateProcess error=2, Не удается найти указанный файл
Current Revision ${build.revision}
Building jar: D:\L2j\emurt-ep\build\scripts.jar
scripts
Copying 1 file to D:\L2j\emurt-ep\build\dist\lib
dist
Creating Zip archive
Building zip: D:\L2j\emurt-ep\build\EmuRT-Epilogue_Rev.${build.revision}_by_JunkyFunky_Licence_Private Edition.zip
Creating Zip archive done

Ant build completed with 4 errors and 66 warnings in 56s at 03.06.2022 2:12
Код:
<?xml version="1.0" encoding="UTF-8"?>
<project name="Build All" default="dist" basedir=".">

    <property name="debug" value="true" />
    <property name="debuglevel" value="lines,vars,source" />
    <property name="optimize" value="true" />
    <property name="nowarn" value="true" />
    <property name="compiler" value="javac1.7" />
    <property name="src.gameserver" location="java/l2p/gameserver" />
    <property name="src.loginserver" location="java/l2p/loginserver" />
    <property name="src.commons" location="java/l2p/commons" />
    <property name="src.scripts" location="dist/gameserver/data"/>

    <property name="dist" location="dist" />
    <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.gameserver" location="${build.dist}/gameserver" />
    <property name="build.dist.loginserver" location="${build.dist}/loginserver" />
    <property name="build.dist.lib" location="${build.dist}/lib" />
    <property name="build.dist.tools" location="${build.dist}/tools" />
    <property name="build.version" value="Epilogue" />
    <property name="build.team" value="EmuRT" />
    <property name="build.teamsite" value="http://emurt.ru" />
    <property name="build.licensetype" value="Private Edition" />
    <property name="build.coredev" value="JunkyFunky" />
    <property name="build.datadev" value="JunkyFunky" />

    <path id="classpath">
        <fileset dir="${lib}">
            <include name="**/*.jar" />
        </fileset>
    </path>

    <pathconvert property="jar.list" pathsep=" " refid="classpath">
        <mapper type="flatten" />
    </pathconvert>

    <property name="build.classpath" refid="classpath"/>

    <tstamp>
        <format property="build.tstamp" pattern="yyyy.MM.dd HH:mm" />
    </tstamp>

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

    <target name="init" depends="checkRequirements" description="Create the output directories.">
        <mkdir dir="${build}" />
    <mkdir dir="${build.classes}" />
    <mkdir dir="${build.dist}" />
    <mkdir dir="${build.dist.gameserver}" />
    <mkdir dir="${build.dist.lib}" />
    <mkdir dir="${build.dist.loginserver}" />
    <mkdir dir="${build.dist.tools}" />
    </target>

    <!--компилим commons-->
    <target name="compile-commons" depends="init">

        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />

        <javac srcdir="${src.commons}"
        destdir="${build.classes}"
        debuglevel="${debuglevel}"
        compiler="${compiler}"
        debug="${debug}"
        source="1.7"
        target="1.7"
        includeantruntime="false"
        encoding="UTF-8"
        nowarn="${nowarn}"
        classpath="${build.classpath}">
            <compilerarg value="-Xlint:unchecked,rawtypes,-serial" />
        </javac>
    </target>

    <!--собираем commons в jar-->
    <target name="commons-jar" depends="compile-commons">

        <exec dir="${basedir}" executable="./lib_svn/svnversion" outputproperty="build.revision" failifexecutionfails="false">
            <arg line="-n ${src.commons}" />
        </exec>
        <echo>Current Revision ${build.revision}</echo>

        <jar destfile="${build}/commons.jar" level="9">
            <fileset dir="${build.classes}" />
            <manifest>
                <attribute name="Build-By" value="${user.name}" />
                <attribute name="Build-Date" value="${build.tstamp}" />
                <attribute name="Revision" value="${build.revision}" />
                <attribute name="Chronicle" value="${build.version}" />
                <attribute name="Team-Name" value="${build.team}" />
                <attribute name="Team-Site" value="${build.teamsite}" />
                <attribute name="License-Type" value="${build.licensetype}" />
                <attribute name="Core-Dev" value="${build.coredev}" />
                <attribute name="Data-Dev" value="${build.datadev}" />
            </manifest>
        </jar>

    </target>

    <!--компилим gameserver-->
    <target name="compile-gameserver" depends="commons-jar">

        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />

        <javac srcdir="${src.gameserver}"
        destdir="${build.classes}"
        debuglevel="${debuglevel}"
        compiler="${compiler}"
        optimize="${optimize}"
        debug="${debug}"
        source="1.7"
        target="1.7"
        includeantruntime="false"
        encoding="UTF-8"
        nowarn="${nowarn}"
        classpath="${build.classpath}:${build}/commons.jar">
            <compilerarg value="-Xlint:unchecked,rawtypes,-serial" />
        </javac>
    </target>

    <!--собираем gameserver в jar-->
    <target name="gameserver-jar" depends="compile-gameserver">
        <exec dir="${basedir}" executable="./lib_svn/svnversion" outputproperty="build.revision" failifexecutionfails="false">
            <arg line="-n ${src.gameserver}" />
        </exec>
        <echo>Current Revision ${build.revision}</echo>

        <concat destfile="${build}/dist/gameserver/config/version.ini">
            Build-By=${user.name}
            Version=${build.version}
            Revision=${build.revision}
            Build Date=${build.tstamp}
            OS=${os.name}
            JDK=${ant.java.version}
        </concat>

        <jar destfile="${build}/gameserver.jar" level="9">
            <fileset dir="${build.classes}" />
            <manifest>
                <attribute name="Main-Class" value="l2p.gameserver.GameServer" />
                <attribute name="Class-Path" value="${jar.list} commons.jar" />
                <attribute name="Build-By" value="${user.name}" />
                <attribute name="Build-Date" value="${build.tstamp}" />
                <attribute name="Build-Os" value="${os.name}" />
                <attribute name="Revision" value="${build.revision}" />
                <attribute name="Chronicle" value="${build.version}" />
                <attribute name="Team-Name" value="${build.team}" />
                <attribute name="Team-Site" value="${build.teamsite}" />
                <attribute name="License-Type" value="${build.licensetype}" />
                <attribute name="Core-Dev" value="${build.coredev}" />
                <attribute name="Data-Dev" value="${build.datadev}" />
            </manifest>
        </jar>

    </target>

    <target name="gameserver" depends="gameserver-jar">

        <mkdir dir="${build.dist}" />
        <mkdir dir="${build.dist.gameserver}" />
        <mkdir dir="${build.dist.gameserver}/geodata" />
        <mkdir dir="${build.dist.gameserver}/log" />

        <copy todir="${build.dist}/lib">
            <fileset dir="${build}">
                <include name="gameserver.jar" />
            </fileset>
        </copy>

        <fixcrlf srcdir="${build.dist.gameserver}" eol="lf" eof="remove" includes="**/*.sh">
        </fixcrlf>

        <fixcrlf srcdir="${build.dist.gameserver}" eol="crlf" eof="remove" includes="**/*.bat">
        </fixcrlf>

        <delete dir="${build.classes}" />

        <copy todir="${build.dist.gameserver}" preservelastmodified="true">
            <fileset dir="${dist}/gameserver">
                <include name="**/*.*"/>
                <exclude name="/data/scripts/**/*" />
            </fileset>
        </copy>
        <copy todir="${build.dist.loginserver}" preservelastmodified="true">
            <fileset dir="${dist}/loginserver">
                <include name="**/*.*"/>
            </fileset>
        </copy>
        <copy todir="${build.dist.tools}" preservelastmodified="true">
            <fileset dir="${dist}/tools">
                <include name="**/*.*"/>
            </fileset>
        </copy>
    </target>

    <target name="scripts" depends="scripts-jar">
        <copy todir="${build.dist}/lib">
            <fileset dir="${build}">
                <include name="scripts.jar" />
            </fileset>
        </copy>
    </target>

    <!--компилим scripts + собираем scripts в jar-->
    <target name="compile-scripts" depends="commons-jar" description="Compile the source.">
        <copy todir="${lib}">
            <fileset dir="${build}">
                <include name="gameserver.jar" />
                <include name="commons.jar" />
            </fileset>
        </copy>
        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />
        <javac destdir="${build.classes}"
               optimize="${optimize}"
           debuglevel="${debuglevel}"
           compiler="${compiler}"
               debug="${debug}"
               source="1.7"
               target="1.7"
               encoding="UTF-8"
               includeantruntime="false"
               nowarn="${nowarn}">
            <compilerarg value="-Xlint:unchecked,rawtypes,-serial"></compilerarg>
            <src path="${src.scripts}"/>
            <classpath refid="classpath"/>
        </javac>

    </target>

    <target name="scripts-jar" depends="compile-scripts">
        <exec dir="${basedir}" executable="./lib_svn/svnversion" outputproperty="build.revision" failifexecutionfails="false">
            <arg line="-n ${src.scripts}" />
        </exec>
        <echo>Current Revision ${build.revision}</echo>
        <jar destfile="${build}/scripts.jar" level="9">
            <fileset dir="${build.classes}"/>
            <manifest>
                <attribute name="Main-Class" value="l2p.gameserver.GameServer"/>
                <attribute name="Build-By" value="${user.name}" />
                <attribute name="Build-Date" value="${build.tstamp}" />
                <attribute name="Build-Os" value="${os.name}" />
                <attribute name="Revision" value="${build.revision}" />
                <attribute name="Chronicle" value="${build.version}" />
                <attribute name="Team-Name" value="${build.team}" />
                <attribute name="Team-Site" value="${build.teamsite}" />
                <attribute name="License-Type" value="${build.licensetype}" />
                <attribute name="Core-Dev" value="${build.coredev}" />
                <attribute name="Data-Dev" value="${build.datadev}" />
            </manifest>
        </jar>
    </target>

    <!--компилим loginserver-->
    <target name="compile-loginserver" depends="commons-jar">


        <delete dir="${build.classes}" />
        <mkdir dir="${build.classes}" />

        <javac srcdir="${src.loginserver}"
        optimize="${optimize}"
        debuglevel="${debuglevel}"
        compiler="${compiler}"
        destdir="${build.classes}"
        debug="${debug}"
        source="1.7"
        target="1.7"
        includeantruntime="false"
        encoding="UTF-8"
        nowarn="${nowarn}"
        classpath="${build.classpath}:${build}/commons.jar">
        <compilerarg value="-Xlint:unchecked,rawtypes,-serial" />
        </javac>
    </target>

    <!--собираем loginserver в jar-->
    <target name="loginserver-jar" depends="compile-loginserver">
        <exec dir="${basedir}" executable="./lib_svn/svnversion" outputproperty="build.revision" failifexecutionfails="false">
            <arg line="-n ${src.loginserver}" />
        </exec>

        <jar destfile="${build}/loginserver.jar" level="9">
            <fileset dir="${build.classes}" />
            <manifest>
                <attribute name="Main-Class" value="l2p.loginserver.LoginServer" />
                <attribute name="Class-Path" value="${jar.list} commons.jar" />
                <attribute name="Build-By" value="${user.name}" />
                <attribute name="Build-Date" value="${build.tstamp}" />
                <attribute name="Revision" value="${build.revision}" />
                <attribute name="Chronicle" value="${build.version}" />
                <attribute name="Team-Name" value="${build.team}" />
                <attribute name="Team-Site" value="${build.teamsite}" />
                <attribute name="License-Type" value="${build.licensetype}" />
                <attribute name="Core-Dev" value="${build.coredev}" />
                <attribute name="Data-Dev" value="${build.datadev}" />
            </manifest>
        </jar>

    </target>

    <target name="loginserver" depends="loginserver-jar">

        <mkdir dir="${build.dist}" />
        <mkdir dir="${build.dist.loginserver}" />
        <mkdir dir="${build.dist.loginserver}/log" />

        <copy todir="${build.dist}/lib">
            <fileset dir="${build}">
                <include name="loginserver.jar" />
                <include name="commons.jar" />
            </fileset>
        </copy>

        <copy todir="${build.dist}/lib">
            <fileset dir="${lib}">
                <include name="*.jar" />
                <exclude name="gameserver.jar" />
            </fileset>
        </copy>

        <fixcrlf srcdir="${build.dist.loginserver}" eol="lf" eof="remove" includes="**/*.sh">
        </fixcrlf>

        <fixcrlf srcdir="${build.dist.loginserver}" eol="crlf" eof="remove" includes="**/*.bat">
        </fixcrlf>

    </target>

    <target name="checkRequirements" description="Check Requirements.">
        <echo message="Check ANT version" />
        <fail message="Ant 1.9.1 is required. But your version is ${ant.version} and if you are using Eclipse probably is outdated.">
            <condition>
                <not>
                    <antversion atleast="1.9.1" />
                </not>
            </condition>
        </fail>
        <echo message="Check JDK version" />
    <available classname="java.lang.AutoCloseable" property="JDK7.present" />
        <fail unless="JDK7.present" message="Java 1.7 is required. But your version is Java ${ant.java.version} and probably JDK is not installed." />
    </target>

    <target name="dist" depends="loginserver, gameserver, scripts">
        <echo message="Creating Zip archive"/>
        <zip destfile="${build}/EmuRT-${build.version}_Rev.${build.revision}_by_${build.coredev}_Licence_${build.licensetype}.zip" basedir="${build.dist}" level="9" />
        <echo message="Creating Zip archive done"/>
    </target>
</project>
 
Ayako, 18 != 1.8
а скачать нужно jdk-8u241-windows-x64, ну или другой битности
допустим, но почему всеже эпилог компилитца, на 18 джаве,
Ладн спасибо завтра уже разберусь. Надо это заставить работать на 18 :)
 
допустим, но почему всеже эпилог компилитца, на 18 джаве,
допустили) но почему на эпилоге собралось, я не отвечу. Не экспериментировал в этом плане

п.с. - все же таргет версии указывается наверно не просто так
 
допустили) но почему на эпилоге собралось, я не отвечу. Не экспериментировал в этом плане

п.с. - все же таргет версии указывается наверно не просто так
оно какбы начинает создавать но потом идет ошибка) вот даже пару либ успивает делать
Еще и какоето окошко при начале компила начало высвечиваться)
1654213870864.png
 
Последнее редактирование:
попробовать собрать с начало на указанной в бильд файле версии, и если соберется уже выяснять почему на более новых версиях не собирается. В новых релизах разрабы явы имеют привычку удалять либы, к примеру в 9 версии было удалено rt.jar и tools.jar. Вот хз за что они отвечаю, даже не хочу выяснять. Так вот в скриптах возможно используется зависимость одной из либ, которая отсутствует в той версии явы, которой ты пытаешься собрать.
 
Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
Всё там нормально собирается с Java 8.
1.8 это не 18 Java а 8. Так же как 1.7 не 17 итд.
Во первых уберите
Код:
<property name="info" location="info" />
<property name="build.dist.info" location="${build.dist}/info" />
<zipfileset dir="${info}" prefix="info"/>
Ну или добавьте папку info
Собралось даже на 12 java с варнингами.
1654218381906.png
 
Всё там нормально собирается с Java 8.
1.8 это не 18 Java а 8. Так же как 1.7 не 17 итд.
Во первых уберите
Код:
<property name="info" location="info" />
<property name="build.dist.info" location="${build.dist}/info" />
<zipfileset dir="${info}" prefix="info"/>
Ну или добавьте папку info
Собралось даже на 12 java с варнингами.
Посмотреть вложение 43938
Спасибки. Прийду домой попробую
 
не нагнула всеже меня система) пришлось 8 жабу ставить)
Всем спасибки за помощь! :)
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху Снизу