Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Проблемма с компиляцией
#11
PROGRAMMATOR Написал:Начинаете заново, прямо с загрузки исходов. Проверено, компилится без проблем.

Сейчас попробую .

Добавлено через 1 час 30 минут
Ну а теперь всё свожится к тому ,что у меня нет вкладки SVN ....

Добавлено через 2 часа 5 минут
Ну методом тыка вроде разобрался ... Дальше всё строго по мануалам . И вот в конце :

Код:
Buildfile: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build.xml
prepare-local:
prepare-final:
init:
    [mkdir] Created dir: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build
    [mkdir] Created dir: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build\classes
    [mkdir] Created dir: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build\dist
    [mkdir] Created dir: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build\dist\loginserver
    [mkdir] Created dir: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build\dist\loginserver\lib
    [mkdir] Created dir: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build\dist\gameserver
    [mkdir] Created dir: C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build\dist\gameserver\lib
version:
     [echo] L2jFrozen Gameserver Revision: 855
compile:
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build.xml:64: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1453 source files to C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build\classes
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:3883: incomparable types: java.lang.Enum<capture#398 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                     && ItemTable.getInstance().createDummyItem(itemId).getItemType() == L2EtcItemType.HERB
    [javac]                                                                                      ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:3884: incomparable types: java.lang.Enum<capture#779 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                     || ItemTable.getInstance().createDummyItem(itemId).getItemType() != L2EtcItemType.HERB))
    [javac]                                                                                      ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:3924: incomparable types: java.lang.Enum<capture#180 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]             if(ItemTable.getInstance().createDummyItem(itemId).getItemType() == L2EtcItemType.HERB) //If item is herb dont add it to iv :]
    [javac]                                                                              ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:5513: incomparable types: java.lang.Enum<capture#208 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]         if(target.getItemType() == L2EtcItemType.HERB)
    [javac]                                 ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:5535: inconvertible types
    [javac] found   : java.lang.Enum<capture#740 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]             if(target.getItemType() instanceof L2ArmorType || target.getItemType() instanceof L2WeaponType)
    [javac]                                  ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:5535: inconvertible types
    [javac] found   : java.lang.Enum<capture#831 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]             if(target.getItemType() instanceof L2ArmorType || target.getItemType() instanceof L2WeaponType)
    [javac]                                                                                 ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:5688: inconvertible types
    [javac] found   : java.lang.Enum<capture#883 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]         if((L2ArmorType) armor.getItemType() == L2ArmorType.HEAVY)
    [javac]                                           ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:5702: inconvertible types
    [javac] found   : java.lang.Enum<capture#940 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]         if((L2ArmorType) armor.getItemType() == L2ArmorType.LIGHT)
    [javac]                                           ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2PcInstance.java:5716: inconvertible types
    [javac] found   : java.lang.Enum<capture#157 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]         if((L2ArmorType) armor.getItemType() == L2ArmorType.MAGIC)
    [javac]                                           ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\TradeList.java:340: incomparable types: java.lang.Enum<capture#351 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]             || item.getItemType() == L2EtcItemType.QUEST)
    [javac]                                   ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\TradeList.java:404: incomparable types: java.lang.Enum<capture#303 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]         if(!item.isTradeable() || item.getItemType() == L2EtcItemType.QUEST)
    [javac]                                                      ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\Inventory.java:210: incomparable types: java.lang.Enum<capture#919 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]             if(item.getItemType() == L2WeaponType.BOW)
    [javac]                                   ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\Inventory.java:253: incomparable types: java.lang.Enum<capture#597 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]             if(item.getItemType() == L2WeaponType.BOW)
    [javac]                                   ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\Inventory.java:1312: incomparable types: java.lang.Enum<capture#632 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                 if(!(item.getItem() instanceof L2EtcItem) || item.getItem().getItemType() != L2EtcItemType.ARROW)
    [javac]                                                                                           ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\PcInventory.java:691: incomparable types: java.lang.Enum<capture#825 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]         if(!(item.isStackable() && getItemByItemId(item.getItemId()) != null) && item.getItemType() != L2EtcItemType.HERB)
    [javac]                                                                                                     ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\PcInventory.java:744: incomparable types: java.lang.Enum<capture#288 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]         if(!(item.isStackable() && getItemByItemId(item.getItemId()) != null) && item.getItemType() != L2EtcItemType.HERB)
    [javac]                                                                                                     ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\ShortCuts.java:133: incomparable types: java.lang.Enum<capture#162 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]             if(item != null && item.getItemType() == L2EtcItemType.SHOT)
    [javac]                                                   ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\L2Attackable.java:2512: incomparable types: java.lang.Enum<capture#727 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                 if(Config.AUTODESTROY_ITEM_AFTER > 0 && ditem.getItemType() != L2EtcItemType.HERB || Config.HERB_AUTO_DESTROY_TIME > 0 && ditem.getItemType() == L2EtcItemType.HERB)
    [javac]                                                                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\model\L2Attackable.java:2512: incomparable types: java.lang.Enum<capture#375 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                 if(Config.AUTODESTROY_ITEM_AFTER > 0 && ditem.getItemType() != L2EtcItemType.HERB || Config.HERB_AUTO_DESTROY_TIME > 0 && ditem.getItemType() == L2EtcItemType.HERB)
    [javac]                                                                                                                                                               ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\templates\L2Weapon.java:141: inconvertible types
    [javac] found   : java.lang.Enum<capture#637 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]         return (L2WeaponType) super._type;
    [javac]                                    ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\templates\L2Armor.java:82: inconvertible types
    [javac] found   : java.lang.Enum<capture#71 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]         return (L2ArmorType) super._type;
    [javac]                                   ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\ItemsAutoDestroy.java:87: incomparable types: java.lang.Enum<capture#491 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                 if(item.getItemType() == L2EtcItemType.HERB)
    [javac]                                       ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\datatables\sql\ItemTable.java:341: incomparable types: java.lang.Enum<capture#231 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]         if(item.type == L2WeaponType.NONE)
    [javac]                      ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\datatables\sql\ItemTable.java:390: incomparable types: java.lang.Enum<capture#749 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]         if(item.type == L2WeaponType.PET)
    [javac]                      ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\datatables\sql\ItemTable.java:465: incomparable types: java.lang.Enum<capture#410 of ?> and com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]         if(item.type == L2ArmorType.PET)
    [javac]                      ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\templates\L2EtcItem.java:48: inconvertible types
    [javac] found   : java.lang.Enum<capture#291 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]         return (L2EtcItemType) super._type;
    [javac]                                     ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\skillhandlers\Blow.java:155: incomparable types: java.lang.Enum<capture#81 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 boolean soul = (weapon != null && weapon.getChargedSoulshot() == L2ItemInstance.CHARGED_SOULSHOT && (weapon.getItemType() == L2WeaponType.DAGGER ));
    [javac]                                                                                                                                           ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\skillhandlers\Pdam.java:144: incomparable types: java.lang.Enum<capture#747 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]             boolean soul = (weapon != null && weapon.getChargedSoulshot() == L2ItemInstance.CHARGED_SOULSHOT && weapon.getItemType() != L2WeaponType.DAGGER);
    [javac]                                                                                                                                      ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\skillhandlers\StrSiegeAssault.java:107: incomparable types: java.lang.Enum<capture#43 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 boolean soul = (weapon != null && weapon.getChargedSoulshot() == L2ItemInstance.CHARGED_SOULSHOT && weapon.getItemType() != L2WeaponType.DAGGER);
    [javac]                                                                                                                                          ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\managers\ItemsOnGroundManager.java:169: incomparable types: java.lang.Enum<capture#892 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                             if(Config.AUTODESTROY_ITEM_AFTER > 0 && item.getItemType() != L2EtcItemType.HERB || Config.HERB_AUTO_DESTROY_TIME > 0 && item.getItemType() == L2EtcItemType.HERB)
    [javac]                                                                                        ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\managers\ItemsOnGroundManager.java:169: incomparable types: java.lang.Enum<capture#310 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                             if(Config.AUTODESTROY_ITEM_AFTER > 0 && item.getItemType() != L2EtcItemType.HERB || Config.HERB_AUTO_DESTROY_TIME > 0 && item.getItemType() == L2EtcItemType.HERB)
    [javac]                                                                                                                                                                         ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\network\clientpackets\RequestDropItem.java:102: incomparable types: java.lang.Enum<capture#161 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]         if(item.getItemType() == L2EtcItemType.QUEST && !(activeChar.isGM() && Config.GM_TRADE_RESTRICTED_ITEMS))
    [javac]                               ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\network\clientpackets\RequestEnchantItem.java:133: incomparable types: java.lang.Enum<capture#635 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]         if(item.getItem().getItemType() == L2WeaponType.ROD || item.isShadowItem())
    [javac]                                         ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\network\clientpackets\RequestPackageSend.java:161: incomparable types: java.lang.Enum<capture#717 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]             if(!item.isTradeable() || item.getItemType() == L2EtcItemType.QUEST)
    [javac]                                                          ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\network\clientpackets\SendWareHouseDepositList.java:164: incomparable types: java.lang.Enum<capture#573 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]             if(warehouse instanceof ClanWarehouse && !item.isTradeable() || item.getItemType() == L2EtcItemType.QUEST)
    [javac]                                                                                                ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\DocumentItem.java:162: inconvertible types
    [javac] found   : java.lang.Enum<capture#531 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]         if(_currentItem.type instanceof L2ArmorType)
    [javac]                        ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\DocumentItem.java:164: inconvertible types
    [javac] found   : java.lang.Enum<capture#707 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2ArmorType
    [javac]             _currentItem.item = new L2Armor((L2ArmorType) _currentItem.type, _currentItem.set);
    [javac]                                                                       ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\DocumentItem.java:166: inconvertible types
    [javac] found   : java.lang.Enum<capture#511 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]         else if(_currentItem.type instanceof L2WeaponType)
    [javac]                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\DocumentItem.java:168: inconvertible types
    [javac] found   : java.lang.Enum<capture#939 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]             _currentItem.item = new L2Weapon((L2WeaponType) _currentItem.type, _currentItem.set);
    [javac]                                                                         ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\DocumentItem.java:170: inconvertible types
    [javac] found   : java.lang.Enum<capture#806 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]         else if(_currentItem.type instanceof L2EtcItemType)
    [javac]                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\DocumentItem.java:172: inconvertible types
    [javac] found   : java.lang.Enum<capture#490 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]             _currentItem.item = new L2EtcItem((L2EtcItemType) _currentItem.type, _currentItem.set);
    [javac]                                                                           ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\SkillsEngine.java:152: inconvertible types
    [javac] found   : java.lang.Enum<capture#593 of ?>
    [javac] required: com.l2jfrozen.gameserver.templates.L2EtcItemType
    [javac]                 list.add(new L2EtcItem((L2EtcItemType) item.type, item.set));
    [javac]                                                            ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:106: incomparable types: java.lang.Enum<capture#449 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 if(itemType == L2WeaponType.BOW)
    [javac]                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:110: incomparable types: java.lang.Enum<capture#263 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                  ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:110: incomparable types: java.lang.Enum<capture#848 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                       ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:110: incomparable types: java.lang.Enum<capture#675 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                                                        ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:120: incomparable types: java.lang.Enum<capture#351 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 if(itemType == L2WeaponType.BOW)
    [javac]                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:124: incomparable types: java.lang.Enum<capture#264 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                  ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:124: incomparable types: java.lang.Enum<capture#763 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                       ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:124: incomparable types: java.lang.Enum<capture#666 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                                                        ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:134: incomparable types: java.lang.Enum<capture#477 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 if(itemType == L2WeaponType.BOW)
    [javac]                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:138: incomparable types: java.lang.Enum<capture#799 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                  ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:138: incomparable types: java.lang.Enum<capture#548 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                       ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:138: incomparable types: java.lang.Enum<capture#240 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                                                        ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:149: incomparable types: java.lang.Enum<capture#237 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 if(itemType == L2WeaponType.BOW)
    [javac]                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:159: incomparable types: java.lang.Enum<capture#30 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 if(itemType == L2WeaponType.BOW)
    [javac]                             ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:163: incomparable types: java.lang.Enum<capture#185 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                  ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:163: incomparable types: java.lang.Enum<capture#249 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                       ^
    [javac] C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\skills\funcs\FuncEnchant.java:163: incomparable types: java.lang.Enum<capture#899 of ?> and com.l2jfrozen.gameserver.templates.L2WeaponType
    [javac]                 else if(itemType == L2WeaponType.DUALFIST || itemType == L2WeaponType.DUAL || itemType == L2WeaponType.SWORD && item.getItem().getBodyPart() == 16384)
    [javac]                                                                                                        ^
    [javac] 59 errors

BUILD FAILED
C:\Documents and Settings\Admin\workspace\L2jFrozen_GameServer\build.xml:64: Compile failed; see the compiler error output for details.

Total time: 10 seconds

Добавлено через 2 часа 25 минут
При этом датапак закомпилился нормально .
[Изображение: master.gif]
Ответ
#12
Нужно не ману(а)лы читать, а Java учить.
incomparable types: java.lang.Enum<capture#825 of ?> and com.l2jfrozen.gameserver.templates.L2EtcItemType
Приведение типов не верное, L2EtcItemType совсем не похож (и не является наследником) того, что возвращает getItemType().

Грустно...
Ответ
#13
Цитата:
Грустно...


Ну знаешь , я впервые компилирую сборку . Это тоже самое , если человека , всю жизнь выполняющего чертежи по старинке карандашом , посадить за Автокад ...
[Изображение: master.gif]
Ответ
#14
оффтоп
Web программист\разработчик

— Есть только один способ проделать большую работу — полюбить ее. Если вы к этому не пришли, подождите. Не беритесь за дело.
Ответ
#15
оффтоп
[Изображение: master.gif]
Ответ
#16
Пытался компилить EnterWorld, будьте любезны подскажите что это за ошибка?

Цитата:C:\EnterWorld.java:38: package javolution.util does not exist
import javolution.util.FastList;
^
C:\EnterWorld.java:98: incompatible types
found : com.l2jfrozen.gameserver.model.L2Effect[]
required: com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance[]
arr$ = activeChar.getAllEffects();
^
C:\EnterWorld.java:102: incompatible types
found : com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance
required: com.l2jfrozen.gameserver.model.L2Effect
L2Effect e = arr$[i$];
^
C:\EnterWorld.java:593: cannot find symbol
symbol : variable com
location: class com.l2jfrozen.gameserver.network.clientpackets.EnterWorld
private static Logger _log = Logger.getLogger(com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.getName());
^
C:\EnterWorld.java:593: cannot find symbol
symbol : variable l2jfrozen
location: class com.l2jfrozen.gameserver.network.clientpackets.EnterWorld
private static Logger _log = Logger.getLogger(com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.getName());
^
C:\EnterWorld.java:593: cannot find symbol
symbol : variable gameserver
location: class com.l2jfrozen.gameserver.network.clientpackets.EnterWorld
private static Logger _log = Logger.getLogger(com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.getName());
^
C:\EnterWorld.java:593: cannot find symbol
symbol : variable network
location: class com.l2jfrozen.gameserver.network.clientpackets.EnterWorld
private static Logger _log = Logger.getLogger(com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.getName());
^
C:\EnterWorld.java:593: cannot find symbol
symbol : variable clientpackets
location: class com.l2jfrozen.gameserver.network.clientpackets.EnterWorld
private static Logger _log = Logger.getLogger(com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.getName());
^
C:\EnterWorld.java:593: cannot find symbol
symbol : method getName()
location: class com.l2jfrozen.gameserver.network.clientpackets.EnterWorld
private static Logger _log = Logger.getLogger(com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.getName());
^
C:\EnterWorld.java:593: cannot find symbol
symbol : method getLogger(int)
location: class java.util.logging.Logger
private static Logger _log = Logger.getLogger(com/l2jfrozen/gameserver/network/clientpackets/EnterWorld.getName());
^
10 errors
Ответ
#17
Убейте автора кода пожалйста. Причем быстро и безболезненно.
Кто такой код пишет?
1. Это вам не PHP, переменные надо объявлять и типизировать!
2. Имена пакетов разделяются . а не /
3. Используемые классы надо импортировать
Ответ
#18
Ну дык я тока начинаю разбираться в этом Smile
Последняя сборка l2jfrozen
Вытащил с ядра dj decompiler EnterWorld.jad
Далее изменил их копирайты на свои, ctrl+S, получился EnterWorld.java
Далее:
[Изображение: 3ada4de19f92.jpg]
И после этого мне выдало эти 10 ошибок.

Укажите мои ошибки.
Ответ
#19
После декомпилера в 98% случаев требуется "ручная" переработка кода. Sad but true
У вас только одна ошибка - отсутствие знания Java.
Исправите ее - исправятся другие
Ответ
#20
Ну дык поэтому и задаю вопросы чтобы разобраться в этом.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Проблемма с TvT и СTF ивентом NewRich25 0 1,264 04-17-2016, 11:36 AM
Последний пост: NewRich25
  Проблемма с запуском LS/GS MROBAR 1 1,437 02-03-2012, 10:50 PM
Последний пост: FewG
  Проблема с компиляцией Imm 4 1,903 10-09-2011, 02:04 PM
Последний пост: Imm
  Проблема с компиляцией сборки by Eclipse FaintSmile 5 2,163 05-22-2011, 10:22 AM
Последний пост: FaintSmile
  Проблемма со скулом MROBAR 2 1,826 01-24-2011, 05:12 PM
Последний пост: MROBAR
  проблемма с квестом, лвл ап xameleon 0 2,215 05-04-2009, 11:45 AM
Последний пост: xameleon

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)