Eclipse/Compile Problem

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Eclipse/Compile Problem

Post by rockkth »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

I have tried for 3 days now to compile with ant build inside eclipse from svn repository. i followed the steps from the tutorial ( changed in the environment the java_home and path) , still i get the same error.

I googled for the error, but nothing solved it, maybe someone encountered the same thing and has a solution. I really need to edit compile some java files..

Code: Select all

Buildfile: D:\ecl\rockk\l2j r server\L2_GameServer\build.xmlclean:   [delete] Deleting directory D:\ecl\rockk\l2j r server\L2_GameServer\buildverifyRequirements:init:    [mkdir] Created dir: D:\ecl\rockk\l2j r server\L2_GameServer\build    [mkdir] Created dir: D:\ecl\rockk\l2j r server\L2_GameServer\build\classes    [mkdir] Created dir: D:\ecl\rockk\l2j r server\L2_GameServer\build\dist    [mkdir] Created dir: D:\ecl\rockk\l2j r server\L2_GameServer\build\dist\login    [mkdir] Created dir: D:\ecl\rockk\l2j r server\L2_GameServer\build\dist\gameserverversion:[color=#BF0000]     [exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, The system cannot find the file specified[/color]compile:    [javac] Compiling 1318 source files to D:\ecl\rockk\l2j r server\L2_GameServer\build\classes    [javac] D:\ecl\rockk\l2j r server\L2_GameServer\java\net\sf\l2j\gameserver\model\quest\Quest.java:714: onAcquireSkillList(net.sf.l2j.gameserver.model.actor.L2Npc,net.sf.l2j.gameserver.model.actor.instance.L2PcInstance) is already defined in net.sf.l2j.gameserver.model.quest.Quest    [javac] 	public String onAcquireSkillList(L2Npc npc, L2PcInstance player)    [javac] 	              ^    [javac] D:\ecl\rockk\l2j r server\L2_GameServer\java\net\sf\l2j\gameserver\model\quest\Quest.java:719: onAcquireSkillInfo(net.sf.l2j.gameserver.model.actor.L2Npc,net.sf.l2j.gameserver.model.actor.instance.L2PcInstance,net.sf.l2j.gameserver.model.L2Skill) is already defined in net.sf.l2j.gameserver.model.quest.Quest    [javac] 	public String onAcquireSkillInfo(L2Npc npc, L2PcInstance player, L2Skill skill)    [javac] 	              ^    [javac] D:\ecl\rockk\l2j r server\L2_GameServer\java\net\sf\l2j\gameserver\model\quest\Quest.java:724: onAcquireSkill(net.sf.l2j.gameserver.model.actor.L2Npc,net.sf.l2j.gameserver.model.actor.instance.L2PcInstance,net.sf.l2j.gameserver.model.L2Skill) is already defined in net.sf.l2j.gameserver.model.quest.Quest    [javac] 	public String onAcquireSkill(L2Npc npc, L2PcInstance player, L2Skill skill)    [javac] 	              ^    [javac] D:\ecl\rockk\l2j r server\L2_GameServer\java\net\sf\l2j\gameserver\model\quest\Quest.java:1308: cannot find symbol    [javac] symbol  : variable ON_SKILL_LEARN    [javac] location: class net.sf.l2j.gameserver.model.quest.Quest.QuestEventType    [javac] 		return addEventId(npcId, Quest.QuestEventType.ON_SKILL_LEARN);    [javac] 		                                             ^    [javac] D:\ecl\rockk\l2j r server\L2_GameServer\java\net\sf\l2j\gameserver\network\clientpackets\RequestAquireSkill.java:345: cannot find symbol    [javac] symbol  : variable ON_SKILL_LEARN    [javac] location: class net.sf.l2j.gameserver.model.quest.Quest.QuestEventType    [javac] 				Quest[] qlst = trainer.getTemplate().getEventQuests(Quest.QuestEventType.ON_SKILL_LEARN);    [javac] 				                                                                        ^    [javac] D:\ecl\rockk\l2j r server\L2_GameServer\java\net\sf\l2j\gameserver\network\clientpackets\RequestAquireSkill.java:454: cannot find symbol    [javac] symbol  : variable ON_SKILL_LEARN    [javac] location: class net.sf.l2j.gameserver.model.quest.Quest.QuestEventType    [javac] 			Quest[] qlst = trainer.getTemplate().getEventQuests(Quest.QuestEventType.ON_SKILL_LEARN);    [javac] 			                                                                        ^    [javac] D:\ecl\rockk\l2j r server\L2_GameServer\java\net\sf\l2j\gameserver\network\clientpackets\RequestAquireSkillInfo.java:174: cannot find symbol    [javac] symbol  : variable ON_SKILL_LEARN    [javac] location: class net.sf.l2j.gameserver.model.quest.Quest.QuestEventType    [javac] 			Quest[] qlst = trainer.getTemplate().getEventQuests(Quest.QuestEventType.ON_SKILL_LEARN);    [javac] 			                                                                        ^    [javac] 7 errors BUILD FAILEDD:\ecl\rockk\l2j r server\L2_GameServer\build.xml:76: Compile failed; see the compiler error output for details. Total time: 24 seconds
i even tried to compile with other programs. with textpad i get . with djlava wasn t good neither.

Code: Select all

D:\White Project [Gracia Final] Rev .9 www.l2rus.info\gameserver\l2jserver\net\sf\l2j\gameserver\model\L2SubClassSkillsInfo.java:24: cannot find symbolsymbol  : class L2DatabaseFactorylocation: package net.sf.l2jimport net.sf.l2j.L2DatabaseFactory;
i included the statement import java.util.Scanner; , as i ve been told the symbol errors are due to this missing string. it still failed.

all i want is to compile 4-5 java files to class and inculde them into my core java in the gameserver.
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Eclipse/Compile Problem

Post by MELERIX »

Read the guides: viewtopic.php?f=2&t=10719

and btw we don't give supports for forks.
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Re: Eclipse/Compile Problem

Post by rockkth »

i did it so many times i could probably write one too.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Eclipse/Compile Problem

Post by janiii »

and you did checkout the whole project and not only the files which you want to edit, or?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Re: Eclipse/Compile Problem

Post by rockkth »

janiii wrote:and you did checkout the whole project and not only the files which you want to edit, or?

yes, i try to build the default checked out files, without any patches applied.

still that annoying

Code: Select all

[exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, The system cannot find the file specifiedexport:
it just puzzles me...

Image
Last edited by rockkth on Mon Aug 03, 2009 9:52 am, edited 1 time in total.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Eclipse/Compile Problem

Post by janiii »

it is not an error. you can just ignore it. or install a svn client (i have a commandline subversion client from collabnet)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Eclipse/Compile Problem

Post by _DS_ »

Checkout from White Project [Gracia Final] Rev .9 http://www.l2rus.info ? :D
Ask for support on their forums.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Re: Eclipse/Compile Problem

Post by rockkth »

i check the option at properties/java/compile saying build even on errors. stil at the end it just says build fail and no class files are resulting...

ps. installing silk svn. hope i figure out how to use it..
_DS_ wrote:Checkout from White Project [Gracia Final] Rev .9 http://www.l2rus.info ? :D
Ask for support on their forums.

the thing is i cannot compile from l2j original repositories.

Image

and about white project, when i started reading about l2j i tought it s just the newest "update" of l2j so i started working on it. Big mistake, but i cannot change it now, that s why i try so bad to be able to use official l2j, compile and so on features.
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Eclipse/Compile Problem

Post by MELERIX »

rockkth wrote:the thing is i cannot compile from l2j original repositories.
this is because you have not readed the guides correctly :P

and btw, you have a lot a java versions installed :S

please don't mix different java versions XD

uninstall the old java versions and just use the latest version.

check the guides again, they have pictures and good explanation.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Eclipse/Compile Problem

Post by _DS_ »

http://www.l2jserver.com/old-forum/

Search here. Also I saw good guide (in pictures) on the wiki.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Re: Eclipse/Compile Problem

Post by rockkth »

first of all thank you for your replies. i wouldnt have posted if i wouldn t be almost desperate.

i will uninstall all the javas except jdk 1.6.

i see no other possible thing that could screw this up...
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Eclipse/Compile Problem

Post by _DS_ »

Are you sure what sources fully checked up ? Try to update them, if downloading was aborted - it will reload them. Link to the svnversion can be found on the old forum (but not required).
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Re: Eclipse/Compile Problem

Post by rockkth »

yes i m positive, i added the links to svn, i checked out, everything went great, downloaded the packages no errors, everything went by the book.



i set java_home like this Image

i have java jdk installed at defaul path, to program files... i think this is the only weak link...


the thing is i `m not confortable uninstalling java and stuff since i m running the server on this machine. and i don`t see why should java create any problems..

i think i m cursed or smt.


all i need is to compile 3 freaking files but i can t with anything :)) crazy... anyways, in the end i ll need to compile and recompile alot of stuff i gathered to make the server better, so i really need to fix it somehow.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Eclipse/Compile Problem

Post by janiii »

you cant just compile 3 files. you need to download whole project and build whole project.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
rockkth
Posts: 196
Joined: Sat Jul 04, 2009 8:54 am

Re: Eclipse/Compile Problem

Post by rockkth »

janiii wrote:you cant just compile 3 files. you need to download whole project and build whole project.

yep, because of imports, i understand that now.

i will try to do this at a friend. i m sure it s nothing wrong with my method, since you guys didn t find anything, so i t should be a soft problem..
Post Reply