Помощь в компиляции

AlexTT

Путник
Пользователь
Сообщения
15
Розыгрыши
0
Репутация
0
Реакции
0
Баллы
0
Доброго времени суток! Вот решил поковырять сурсы Epilogue но столкнулся с проблемой - немогу собрать.
Код:
BUILD FAILED
E:\Сервер\build.xml:46: Compile failed; see the compiler error output for details.
Ругается что муравей, что эклипс
Код:
<target name="compile" depends="init" description="Compile the source.">
       <javac destdir="${build}/classes" optimize="on" debug="on" source="1.6" target="1.6" encoding="UTF-8" nowarn="off" includeAntRuntime="false">
           <compilerarg value="-Xlint:all"></compilerarg>
           <src path="${src}" />
           <classpath refid="classpath" />
       </javac>
Насколько я понял, собирать нужно в 6й яве. Но установив 6ю собираться всеровно не хочет.

Грешил на сурсы, но пробовал другие - та же история.
 
Ну а где сам лог?
 
Код:
compile:
    [javac] Compiling 2125 source files to E:\Сервер\build\classes
    [javac] E:\Сервер\java\l2s\log\ErrorLogFormatter.java:19: warning: '_' used as an identifier
    [javac]     private static final String _ = "\t";
    [javac]                                 ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\ErrorLogFormatter.java:28: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\ErrorLogFormatter.java:30: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\ErrorLogFormatter.java:32: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\ErrorLogFormatter.java:34: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\FileLogFormatter.java:21: warning: '_' used as an identifier
    [javac]     private static final String _ = "\t";
    [javac]                                 ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\FileLogFormatter.java:30: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\FileLogFormatter.java:32: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\FileLogFormatter.java:34: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\log\FileLogFormatter.java:36: warning: '_' used as an identifier
    [javac]         output.append(_);
    [javac]                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] E:\Сервер\java\l2s\commons\list\GArray.java:65: warning: [overloads] forEach(INgObjectProcedure<E>) in GArray is potentially ambiguous with forEach(Consumer<? super T>) in Iterable
    [javac]     public boolean forEach(final INgObjectProcedure<E> procedure)
    [javac]                    ^
    [javac]   where E,T are type-variables:
    [javac]     E extends Object declared in class GArray
    [javac]     T extends Object declared in interface Iterable
    [javac] E:\Сервер\java\l2s\game\model\actor\L2Character.java:4103: warning: [rawtypes] found raw type: ConcurrentLinkedQueue
    [javac]                 _skillsOnAction = new ConcurrentLinkedQueue[TriggerActionType.values().length];
    [javac]                                       ^
    [javac]   missing type arguments for generic class ConcurrentLinkedQueue<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ConcurrentLinkedQueue
    [javac] E:\Сервер\java\l2s\game\skills\funcs\FuncTemplate.java:36: warning: [rawtypes] found raw type: Class
    [javac]             _constructor = _func.getConstructor(new Class[] { Stats.class, // stats to update
    [javac]                                                     ^
    [javac]   missing type arguments for generic class Class<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] E:\Сервер\java\l2s\commons\network\MMOConnection.java:93: warning: [unchecked] Possible heap pollution from parameterized vararg type SP
    [javac]     public final void sendPacket(final SP... packets)
    [javac]                                              ^
    [javac]   where SP,T,RP are type-variables:
    [javac]     SP extends SendablePacket<T,RP,SP> declared in class MMOConnection
    [javac]     T extends MMOClient<T,RP,SP> declared in class MMOConnection
    [javac]     RP extends ReceivablePacket<T,RP,SP> declared in class MMOConnection
    [javac] E:\Сервер\java\l2s\game\tables\AugmentationData.java:93: warning: [rawtypes] found raw type: ArrayList
    [javac]     private ArrayList<?>[] _augStats = new ArrayList[4];
    [javac]                                            ^
    [javac]   missing type arguments for generic class ArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ArrayList
    [javac] E:\Сервер\java\l2s\game\tables\AugmentationData.java:94: warning: [rawtypes] found raw type: ArrayList
    [javac]     private ArrayList<?>[] _augAccStats = new ArrayList[4];
    [javac]                                               ^
    [javac]   missing type arguments for generic class ArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ArrayList
    [javac] E:\Сервер\java\l2s\game\tables\AugmentationData.java:96: warning: [rawtypes] found raw type: ArrayList
    [javac]     private ArrayList<?>[] _blueSkills = new ArrayList[10];
    [javac]                                              ^
    [javac]   missing type arguments for generic class ArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ArrayList
    [javac] E:\Сервер\java\l2s\game\tables\AugmentationData.java:97: warning: [rawtypes] found raw type: ArrayList
    [javac]     private ArrayList<?>[] _purpleSkills = new ArrayList[10];
    [javac]                                                ^
    [javac]   missing type arguments for generic class ArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ArrayList
    [javac] E:\Сервер\java\l2s\game\tables\AugmentationData.java:98: warning: [rawtypes] found raw type: ArrayList
    [javac]     private ArrayList<?>[] _redSkills = new ArrayList[10];
    [javac]                                             ^
    [javac]   missing type arguments for generic class ArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ArrayList
    [javac] E:\Сервер\java\l2s\game\tables\AugmentationData.java:99: warning: [rawtypes] found raw type: ArrayList
    [javac]     private ArrayList<?>[] _yellowSkills = new ArrayList[10];
    [javac]                                                ^
    [javac]   missing type arguments for generic class ArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ArrayList
    [javac] E:\Сервер\java\l2s\game\model\restrictions\PlayerRestrictions.java:30: warning: [rawtypes] found raw type: ConcurrentLinkedQueue
    [javac]             restrictions = new ConcurrentLinkedQueue[PlayerRestrictionType.values().length];
    [javac]                                ^
    [javac]   missing type arguments for generic class ConcurrentLinkedQueue<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class ConcurrentLinkedQueue
    [javac] E:\Сервер\java\l2s\game\GameServer.java:521: warning: [rawtypes] found raw type: SelectorThread
    [javac]         _selectorThreads = new SelectorThread[Config.PORTS_GAME.length];
    [javac]                                ^
    [javac]   missing type arguments for generic class SelectorThread<T,RP,SP>
    [javac]   where T,RP,SP are type-variables:
    [javac]     T extends MMOClient<T,RP,SP> declared in class SelectorThread
    [javac]     RP extends ReceivablePacket<T,RP,SP> declared in class SelectorThread
    [javac]     SP extends SendablePacket<T,RP,SP> declared in class SelectorThread
    [javac] E:\Сервер\java\l2s\commons\lang\reference\AbstractHardReference.java:10: warning: [overrides] Class AbstractHardReference overrides equals, but neither it nor any superclass overrides hashCode method
    [javac] public class AbstractHardReference<T extends L2Object> implements IHardReference<T>
    [javac]        ^
    [javac] E:\Сервер\java\l2s\commons\list\LazyArrayList.java:63: warning: [rawtypes] found raw type: LazyArrayList
    [javac]     private static final ObjectPool<LazyArrayList> POOL = new GenericObjectPool<LazyArrayList>(new PoolableLazyArrayListFactory(), POOL_SIZE, GenericObjectPool.WHEN_EXHAUSTED_GROW, 0L, -1);
    [javac]                                     ^
    [javac]   missing type arguments for generic class LazyArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class LazyArrayList
    [javac] E:\Сервер\java\l2s\commons\list\LazyArrayList.java:63: warning: [rawtypes] found raw type: LazyArrayList
    [javac]     private static final ObjectPool<LazyArrayList> POOL = new GenericObjectPool<LazyArrayList>(new PoolableLazyArrayListFactory(), POOL_SIZE, GenericObjectPool.WHEN_EXHAUSTED_GROW, 0L, -1);
    [javac]                                                                                 ^
    [javac]   missing type arguments for generic class LazyArrayList<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class LazyArrayList
    [javac] E:\Сервер\java\l2s\commons\map\MultiValueMap.java:11: warning: [rawtypes] found raw type: Map
    [javac] public class MultiValueMap<K, V> implements Map
    [javac]                                             ^
    [javac]   missing type arguments for generic class Map<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface Map
    [javac]     V extends Object declared in interface Map
    [javac] E:\Сервер\java\l2s\commons\map\MultiValueMap.java:82: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map
    [javac]     public Object remove(Object key, Object value)
    [javac]                   ^
    [javac]   return type Object is not compatible with boolean
    [javac] E:\Сервер\java\l2s\commons\map\MultiValueMap.java:127: warning: [rawtypes] found raw type: Map
    [javac]     public void putAll(Map map)
    [javac]                        ^
    [javac]   missing type arguments for generic class Map<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface Map
    [javac]     V extends Object declared in interface Map
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:113: warning: [rawtypes] found raw type: Enumeration
    [javac]         Enumeration e = vFmt.elements();
    [javac]         ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:187: warning: [rawtypes] found raw type: Enumeration
    [javac]         Enumeration e = vFmt.elements();
    [javac]         ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:214: warning: [rawtypes] found raw type: Enumeration
    [javac]         Enumeration e = vFmt.elements();
    [javac]         ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:243: warning: [rawtypes] found raw type: Enumeration
    [javac]         Enumeration e = vFmt.elements();
    [javac]         ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:272: warning: [rawtypes] found raw type: Enumeration
    [javac]         Enumeration e = vFmt.elements();
    [javac]         ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:301: warning: [rawtypes] found raw type: Enumeration
    [javac]         Enumeration e = vFmt.elements();
    [javac]         ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:331: warning: [rawtypes] found raw type: Enumeration
    [javac]         Enumeration e = vFmt.elements();
    [javac]         ^
    [javac]   missing type arguments for generic class Enumeration<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface Enumeration
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:2825: warning: [rawtypes] found raw type: Vector
    [javac]     private Vector vFmt = new Vector();
    [javac]             ^
    [javac]   missing type arguments for generic class Vector<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class Vector
    [javac] E:\Сервер\java\l2s\commons\text\PrintfFormat.java:2825: warning: [rawtypes] found raw type: Vector
    [javac]     private Vector vFmt = new Vector();
    [javac]                               ^
    [javac]   missing type arguments for generic class Vector<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class Vector
    [javac] E:\Сервер\java\l2s\commons\threading\TaskCreator.java:34: warning: [rawtypes] found raw type: Class
    [javac]         Class<?>[] arg_classes = new Class[args.length];
    [javac]                                      ^
    [javac]   missing type arguments for generic class Class<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] E:\Сервер\java\l2s\extensions\scripts\Scripts.java:40: warning: [rawtypes] found raw type: GArray
    [javac]     private final GArray<EventScript>[] _scriptEvents = new GArray[ScriptEventType.values().length];
    [javac]                                                             ^
    [javac]   missing type arguments for generic class GArray<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class GArray
    [javac] E:\Сервер\java\l2s\game\ai\tasks\random\BuffTask.java:18: warning: [overrides] Class BuffTask overrides equals, but neither it nor any superclass overrides hashCode method
    [javac] public final class BuffTask implements RandomTask
    [javac]              ^
    [javac] E:\Сервер\java\l2s\game\ai\tasks\random\DespawnTask.java:13: warning: [overrides] Class DespawnTask overrides equals, but neither it nor any superclass overrides hashCode method
    [javac] public final class DespawnTask implements RandomTask
    [javac]              ^
    [javac] E:\Сервер\java\l2s\game\handler\admincommandhandlers\AdminDebug.java:279: warning: [rawtypes] found raw type: ScheduledFuture
    [javac]             for(ScheduledFuture task : tasks)
    [javac]                 ^
    [javac]   missing type arguments for generic class ScheduledFuture<V>
    [javac]   where V is a type-variable:
    [javac]     V extends Object declared in interface ScheduledFuture
    [javac] E:\Сервер\java\l2s\game\network\clientpackets\RequestMultiSellChoose.java:46: warning: [overrides] Class RequestMultiSellChoose.ItemData overrides equals, but neither it nor any superclass overrides hashCode method
    [javac]     private class ItemData
    [javac]             ^
    [javac] E:\Сервер\java\l2s\game\skills\funcs\FuncFactory.java:27: warning: [rawtypes] found raw type: Class
    [javac]         final Class funcClass = Class.forName("l2s.game.skills.funcs.Func" + func);
    [javac]               ^
    [javac]   missing type arguments for generic class Class<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] E:\Сервер\java\l2s\game\skills\funcs\FuncFactory.java:28: warning: [rawtypes] found raw type: Constructor
    [javac]         final Constructor funcConstructor = funcClass.getConstructor(new Class[] { Stats.class, Integer.TYPE, Object.class, Lambda.class });
    [javac]               ^
    [javac]   missing type arguments for generic class Constructor<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Constructor
    [javac] E:\Сервер\java\l2s\game\skills\funcs\FuncFactory.java:28: warning: [rawtypes] found raw type: Class
    [javac]         final Constructor funcConstructor = funcClass.getConstructor(new Class[] { Stats.class, Integer.TYPE, Object.class, Lambda.class });
    [javac]                                                                          ^
    [javac]   missing type arguments for generic class Class<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] E:\Сервер\java\l2s\game\tables\NpcTable.java:66: warning: [rawtypes] found raw type: GArray
    [javac]         _npcsByLevel = new GArray[100];
    [javac]                            ^
    [javac]   missing type arguments for generic class GArray<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class GArray
    [javac] E:\Сервер\java\l2s\game\tables\NpcTable.java:77: warning: [rawtypes] found raw type: GArray
    [javac]             _npcsByLevel = new GArray[100];
    [javac]                                ^
    [javac]   missing type arguments for generic class GArray<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class GArray
    [javac] E:\Сервер\java\l2s\game\taskmanager\TaskManager.java:47: warning: [overrides] Class TaskManager.ExecutedTask overrides equals, but neither it nor any superclass overrides hashCode method
    [javac]     public class ExecutedTask implements Runnable
    [javac]            ^
    [javac] 1 error
    [javac] 48 warnings

BUILD FAILED
E:\Сервер\build.xml:46: Compile failed; see the compiler error output for details.

Total time: 26 seconds
 
ваша ошибка и-за которой не происходит компил
[javac] E:\Сервер\java\l2s\commons\map\MultiValueMap.java:82: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map
[javac] public Object remove(Object key, Object value)
 
Код:
public Object remove(Object key, Object value)
    {
        GArray<V> valuesForKey = map.get(key);
        if(valuesForKey == null)
        {
            return null;
        }
        boolean removed = valuesForKey.remove(value);
        if(removed == false)
        {
            return null;
        }
        if(valuesForKey.isEmpty())
            remove(key);
        return value;
    }
Помогите исправить (
 
В 8+ Java компилишь?
public boolean remove(Object key, Object value)
...
Там поменялся тип возвращаемого значения.
 
Последнее редактирование:
  • Мне нравится
Реакции: kick
Может еще ктото подсказать, у меня ант и еклипс отказіваются компилить ниже 8 явы
 
Может еще ктото подсказать, у меня ант и еклипс отказіваются компилить ниже 8 явы
Как бы я тебе решение кинул в посте выше.
public Object remove(Object key, Object value)
на
public boolean remove(Object key, Object value)
 
Последнее редактирование:
  • Мне нравится
Реакции: kick
Код:
 [javac] C:\Users\User\eclipse-workspace\GAME\java\l2s\commons\map\MultiValueMap.java:82: error: cannot find symbol
    [javac]     public bool remove(Object key, Object value)
    [javac]            ^
    [javac]   symbol:   class bool
    [javac]   location: class MultiValueMap<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in class MultiValueMap
    [javac]     V extends Object declared in class MultiValueMap
 
ой пардон, сишная привычка. Не bool, а boolean.
Хотя незнание базовых типов данных в Java заставляет задуматься...
 
  • Мне нравится
Реакции: kick
Это ключевая фишка джавы, в одной версии компилится, в другой шиш!
 
Вобщем, решение проблемы - установить более познюю версию ant. Всем спасибо за помощь!
 
Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
а ещё лучше выкинуть еклипс.
 
Назад
Сверху Снизу