Рейтинг темы:
  • 1 Голос(ов) - 5 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Компиляция ява сборок с помощью Ant
#21
Можешь закоментить Wink
Ответ
#22
удалил, пахает! ну а вдруг не пахало бы?Big Grin
Ответ
#23
[Изображение: b7fdea68feeft.jpg]

Вроде бы все сделал, а результат один... раньше норм компилилось, винду перебил что-то не выходитSmile
Ответ
#24
А в системные переменные забили? В Path.
Web программист\разработчик

— Есть только один способ проделать большую работу — полюбить ее. Если вы к этому не пришли, подождите. Не беритесь за дело.
Ответ
#25
[Изображение: b91a6f73aadat.jpg]

вот так вот стоит...

Добавлено через 1 час 36 минут
все-равно не компилит
Ответ
#26
Господа, подскажите. При компиляции выводит такое :

PHP код:
<?php 
Microsoft Windows
[Version 6.1.7600]
(
c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\Mihail>cd C:\WebServers\home\localhost\www\Gameserver

C
:\WebServers\home\localhost\www\Gameserver>ant
Buildfile
: C:\WebServers\home\localhost\www\Gameserver\build.xml

init
:

version:
[
exec] Execute failed: java.io.IOException: Cannot run program "svnversion"
: CreateProcess error=2, ?? ??????? ????? ????????? ????

compile:
[
javac] C:\WebServers\home\localhost\www\Gameserver\build.xml:74: warning: '
includeantruntime'
was not set, defaulting to build.sysclasspath=last; set to fa
lse
for repeatable builds
[javac] Compiling 1451 source files to C:\WebServers\home\localhost\www\Game
server\build\classes
[javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\handler\skillhandlers\Blow
.java:77: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().c
alcPhysicalSkillEvasion
(target, skill);
[
javac] ^
[
javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\handler\skillhandlers\Pdam
.java:174: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = f.calcPhysicalSkillEvasi
on
(target, skill);
[
javac] ^
[
javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\skills\l2skills\L2SkillChargeDmg
.java:93: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.skills.l2skills.L2SkillChargeDmg)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().calcPhysi
calSkillEvasion
(target, this);
[
javac] ^
[
javac] Note: Some input files use or override a deprecated API.
[
javac] Note: Recompile with -Xlint:deprecation for details.
[
javac] 3 errors

BUILD FAILED
C
:\WebServers\home\localhost\www\Gameserver\build.xml:74: Compile failed; see th
e compiler error output
for details.

Total time: 26 seconds
C
:\WebServers\home\localhost\www\Gameserver>ant
Buildfile
: C:\WebServers\home\localhost\www\Gameserver\build.xml

init
:

version:
[
exec] Execute failed: java.io.IOException: Cannot run program "svnversion"
: CreateProcess error=2, ?? ??????? ????? ????????? ????

compile:
[
javac] C:\WebServers\home\localhost\www\Gameserver\build.xml:69: warning: '
includeantruntime'
was not set, defaulting to build.sysclasspath=last; set to fa
lse
for repeatable builds
[javac] Compiling 1053 source files to C:\WebServers\home\localhost\www\Game
server\build\classes
[javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\handler\skillhandlers\Blow
.java:77: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().c
alcPhysicalSkillEvasion
(target, skill);
[
javac] ^
[
javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\handler\skillhandlers\Pdam
.java:174: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = f.calcPhysicalSkillEvasi
on
(target, skill);
[
javac] ^
[
javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\skills\l2skills\L2SkillChargeDmg
.java:93: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.skills.l2skills.L2SkillChargeDmg)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().calcPhysi
calSkillEvasion
(target, this);
[
javac] ^
[
javac] Note: C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\ga
meserver\handler\skillhandlers\SiegeFlag
.java uses or overrides a deprecated API
.
[
javac] Note: Recompile with -Xlint:deprecation for details.
[
javac] 3 errors

BUILD FAILED
C
:\WebServers\home\localhost\www\Gameserver\build.xml:69: Compile failed; see th
e compiler error output
for details.

Total time: 7 seconds
C
:\WebServers\home\localhost\www\Gameserver>ant
Buildfile
: C:\WebServers\home\localhost\www\Gameserver\build.xml

init
:

version:

compile:
[
javac] C:\WebServers\home\localhost\www\Gameserver\build.xml:69: warning: '
includeantruntime'
was not set, defaulting to build.sysclasspath=last; set to fa
lse
for repeatable builds
[javac] Compiling 1018 source files to C:\WebServers\home\localhost\www\Game
server\build\classes
[javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\handler\skillhandlers\Blow
.java:77: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().c
alcPhysicalSkillEvasion
(target, skill);
[
javac] ^
[
javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\handler\skillhandlers\Pdam
.java:174: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = f.calcPhysicalSkillEvasi
on
(target, skill);
[
javac] ^
[
javac] C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\gameserv
er\skills\l2skills\L2SkillChargeDmg
.java:93: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.skills.l2skills.L2SkillChargeDmg)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().calcPhysi
calSkillEvasion
(target, this);
[
javac] ^
[
javac] Note: C:\WebServers\home\localhost\www\Gameserver\java\com\matrix\ga
meserver\handler\skillhandlers\SiegeFlag
.java uses or overrides a deprecated API
.
[
javac] Note: Recompile with -Xlint:deprecation for details.
[
javac] 3 errors

BUILD FAILED
C
:\WebServers\home\localhost\www\Gameserver\build.xml:69: Compile failed; see th
e compiler error output
for details.

Total time: 6 seconds
C
:\WebServers\home\localhost\www\Gameserver>

Подскажите, в чём ошибка ?

в файле build.xml строка 69 - это :

PHP код:
<?php 
<javac destdir="${build.classes}" optimize="on" debug="on" source="1.6" target="1.6" nowarn="off">
Ответ
#27
Ищите таск
<exec executable="svnversion"....
и комментируйте его
Ответ
#28
Тоже самое выдаёт, всё равно ошибка. В принципе другой сервер компилит ( L2J IT ), а сборку с модом GvE не хочет. Подскажите, что на этот раз не так ? ))

PHP код:
<?php 
Microsoft Windows
[Version 6.1.7600]
(
c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\Mihail>cd C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\Gv\Gameserver
Системе не удается найти указанный путь
.

C:\Users\Mihail>cd C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver

C
:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver>ant
Buildfile
: C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\build.xml

init
:

version:

compile:
[
javac] C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\build.xml:7
4
: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=la
st
; set to false for repeatable builds
[javac] Compiling 1009 source files to C:\Server-Amadeus\INTERLUDE\GvE_INTER
LUDE\GvE\Gameserver\build\classes
[javac] C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\java\com\ma
trix\gameserver\handler\skillhandlers\Blow
.java:77: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().c
alcPhysicalSkillEvasion
(target, skill);
[
javac] ^
[
javac] C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\java\com\ma
trix\gameserver\handler\skillhandlers\Pdam
.java:174: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.model.L2Skill)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = f.calcPhysicalSkillEvasi
on
(target, skill);
[
javac] ^
[
javac] C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\java\com\ma
trix\gameserver\skills\l2skills\L2SkillChargeDmg
.java:93: cannot find symbol
[javac] symbol : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l
.L2Character,com.matrix.gameserver.skills.l2skills.L2SkillChargeDmg)
[
javac] location: class com.matrix.gameserver.skills.Formulas
[javac] boolean skillIsEvaded = Formulas.getInstance().calcPhysi
calSkillEvasion
(target, this);
[
javac] ^
[
javac] Note: C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\java\
com\matrix\gameserver\handler\skillhandlers\SiegeFlag.java uses or overrides a d
eprecated API
.
[
javac] Note: Recompile with -Xlint:deprecation for details.
[
javac] 3 errors

BUILD FAILED
C
:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\build.xml:74: Compile f
ailed
; see the compiler error output for details.

Total time: 7 seconds
C
:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver>
Ответ
#29
А это уже ошибочка в коде, кою муравьишко вам на блюдечке преподнес

Код:
[javac] C:\Server-Amadeus\INTERLUDE\GvE_INTERLUDE\GvE\Gameserver\java\com\ma
trix\gameserver\handler\skillhandlers\Blow.java:77: [color=Red][B]cannot find symbol[/B][/color]
[javac] symbol  : method calcPhysicalSkillEvasion(com.matrix.gameserver.mode
l.L2Character,com.matrix.gameserver.model.L2Skill)
    [javac] location: class com.matrix.gameserver.skills.Formulas
    [javac]                     boolean skillIsEvaded = f.calcPhysicalSkillEvasi
on(target, skill);
Читаем ошибочку, правим исходничек, повторям компиляцию.
Ответ
#30
Выдает при компиляции следущее.
Цитата:Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.

C:\Documents and Settings\Hjg>cd C:\svn\L2server

C:\svn\L2server>ant
Buildfile: C:\svn\L2server\build.xml

checkRequirements:

getChangelogDateVersion:

BUILD FAILED
C:\svn\L2server\build.xml:221: Execute failed: java.io.IOException: Cannot run p
rogram "svn": CreateProcess error=2, ?? ??????? ????? ????????? ????
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:615)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=2, ?? ??????? ????? ????????
? ????
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:189)
at java.lang.ProcessImpl.start(ProcessImpl.java:133)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 24 more

Total time: 3 seconds

C:\svn\L2server>

По разному крутил ничего не получается, до одного места...
Я бы изменил мир к лучшему, но БОГ не дает исходников.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Мануал! Компиляция (Eclipse) сборки Kamael от L2jFree. PROGRAMMATOR 25 22,471 05-08-2014, 10:53 PM
Последний пост: BadStealth
  [видео] Компиляция сборки l2jserver с помощью Eclipse ozot 19 21,624 09-23-2012, 03:28 PM
Последний пост: gorodetskiy
  Декомпиляция и компиляция ядра L2j mazillka 3 5,643 05-13-2012, 02:25 PM
Последний пост: Evengard
  Мануал по созданию и востоновлению резервных копий баз данных с помощью Mysqldump [Red Dragon] 4 11,717 05-04-2011, 01:16 PM
Последний пост: ZhukV
  ZG-compiller - установка и компиляция сборок ява серверов PROGRAMMATOR 49 24,047 08-05-2010, 08:44 AM
Последний пост: FischeR
  Мануал! Компиляция сборок L2jfree, L2Emu... PROGRAMMATOR 31 30,898 07-09-2010, 04:15 PM
Последний пост: Lavs
  [Manual] Компиляция сервера под *nix на примере L2EMU advix 0 8,221 10-10-2008, 05:43 PM
Последний пост: advix

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


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