Доброго времени суток.
При компиляции сборки l2jFrozen выбивает ошибку:
Могу скинуть весь исходник
В чем проблема и как ее исправить?)
В яве мягко сказано "не силен")
Заранее благодарен за помощь.
Добавлено через 3 часа 36 минут
За исправление скрипта дам на пиво)) 10WMZ
При компиляции сборки l2jFrozen выбивает ошибку:
Ошибка
Microsoft Windows [Version 6.1.7601]
© Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.
C:\Windows\system32>cd C:\FireAge_clear sourc\gameserver
C:\FireAge_clear sourc\gameserver>ant
Buildfile: C:\FireAge_clear sourc\gameserver\build.xml
prepare-local:
prepare-final:
init:
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\classes
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\loginserve
r
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\loginserve
r\lib
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\gameserver
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\gameserver
\lib
version:
[echo] L2jFireAge Gameserver Revision: exported
compile:
[javac] Compiling 1477 source files to C:\FireAge_clear sourc\gameserver\bui
ld\classes
[javac] C:\FireAge_clear sourc\gameserver\head-src\com\l2jfrozen\Config.java
:4585: cannot find symbol
[javac] symbol : variable HEROES_FILE
[javac] location: class com.l2jfrozen.FService
[javac] private static final String HEROES_FILE = FService.HEROES_FILE;
[javac] ^
[javac] C:\FireAge_clear sourc\gameserver\head-src\com\l2jfrozen\gameserver\
model\actor\instance\L2NpcInstance.java:1528: cannot find symbol
[javac] symbol : method setHero(int)
[javac] location: class com.l2jfrozen.gameserver.model.actor.instance.L2PcIn
stance
[javac] player.setHero(days);
[javac] ^
[javac] Note: C:\FireAge_clear sourc\gameserver\head-src\com\l2jfrozen\games
erver\model\entity\event\TvTEvent.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
BUILD FAILED
C:\FireAge_clear sourc\gameserver\build.xml:65: Compile failed; see the compiler
error output for details.
Total time: 3 seconds
C:\FireAge_clear sourc\gameserver>
© Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.
C:\Windows\system32>cd C:\FireAge_clear sourc\gameserver
C:\FireAge_clear sourc\gameserver>ant
Buildfile: C:\FireAge_clear sourc\gameserver\build.xml
prepare-local:
prepare-final:
init:
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\classes
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\loginserve
r
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\loginserve
r\lib
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\gameserver
[mkdir] Created dir: C:\FireAge_clear sourc\gameserver\build\dist\gameserver
\lib
version:
[echo] L2jFireAge Gameserver Revision: exported
compile:
[javac] Compiling 1477 source files to C:\FireAge_clear sourc\gameserver\bui
ld\classes
[javac] C:\FireAge_clear sourc\gameserver\head-src\com\l2jfrozen\Config.java
:4585: cannot find symbol
[javac] symbol : variable HEROES_FILE
[javac] location: class com.l2jfrozen.FService
[javac] private static final String HEROES_FILE = FService.HEROES_FILE;
[javac] ^
[javac] C:\FireAge_clear sourc\gameserver\head-src\com\l2jfrozen\gameserver\
model\actor\instance\L2NpcInstance.java:1528: cannot find symbol
[javac] symbol : method setHero(int)
[javac] location: class com.l2jfrozen.gameserver.model.actor.instance.L2PcIn
stance
[javac] player.setHero(days);
[javac] ^
[javac] Note: C:\FireAge_clear sourc\gameserver\head-src\com\l2jfrozen\games
erver\model\entity\event\TvTEvent.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
BUILD FAILED
C:\FireAge_clear sourc\gameserver\build.xml:65: Compile failed; see the compiler
error output for details.
Total time: 3 seconds
C:\FireAge_clear sourc\gameserver>
Строка 4585 в файле Config.java
private static final String HEROES_FILE = FService.HEROES_FILE;
public static boolean HEROES;
public static int HEROES_COIN;
public static int HEROES_PRICE;
public static int HEROES_MINDAYS;
public static void loadHeroes()
{
try
{
Properties heroes = new Properties();
InputStream is = new FileInputStream(new File(HEROES_FILE));
heroes.load(is);
is.close();
HEROES_COIN = Integer.parseInt(heroes.getProperty("HeroesMoney", "9998"));
HEROES_PRICE = Integer.parseInt(heroes.getProperty("HeroesMoneyDayPrice", "1"));
HEROES_MINDAYS = Integer.parseInt(heroes.getProperty("HeroesMinDay", "1"));
HEROES = Boolean.parseBoolean(heroes.getProperty("HeroesActive", "True"));
}
catch(Exception e)
{
if(Config.ENABLE_ALL_EXCEPTIONS)
e.printStackTrace();
_log.warning("Could not load Heroes file (" + HEROES_FILE + "). Hopefully login will give us one.");
}
}
public static boolean HEROES;
public static int HEROES_COIN;
public static int HEROES_PRICE;
public static int HEROES_MINDAYS;
public static void loadHeroes()
{
try
{
Properties heroes = new Properties();
InputStream is = new FileInputStream(new File(HEROES_FILE));
heroes.load(is);
is.close();
HEROES_COIN = Integer.parseInt(heroes.getProperty("HeroesMoney", "9998"));
HEROES_PRICE = Integer.parseInt(heroes.getProperty("HeroesMoneyDayPrice", "1"));
HEROES_MINDAYS = Integer.parseInt(heroes.getProperty("HeroesMinDay", "1"));
HEROES = Boolean.parseBoolean(heroes.getProperty("HeroesActive", "True"));
}
catch(Exception e)
{
if(Config.ENABLE_ALL_EXCEPTIONS)
e.printStackTrace();
_log.warning("Could not load Heroes file (" + HEROES_FILE + "). Hopefully login will give us one.");
}
}
Строка 1528 файл L2NpcInstance
player.destroyItemByItemId("pwhero", Config.HEROES_COIN, total, player, true);
player.setHero(days);
html.setFile("data/html/Heroes/heroes-ok.htm");
player.sendPacket(html);
}
else if(command.startsWith("RaidbossLvl_"))
{
int endOfId = command.indexOf('_', 5);
if(endOfId > 0)
command.substring(4, endOfId);
else
command.substring(4);
try
player.setHero(days);
html.setFile("data/html/Heroes/heroes-ok.htm");
player.sendPacket(html);
}
else if(command.startsWith("RaidbossLvl_"))
{
int endOfId = command.indexOf('_', 5);
if(endOfId > 0)
command.substring(4, endOfId);
else
command.substring(4);
try
В чем проблема и как ее исправить?)
В яве мягко сказано "не силен")
Заранее благодарен за помощь.
Добавлено через 3 часа 36 минут
За исправление скрипта дам на пиво)) 10WMZ