Page 1 of 1

Compiling Server (without eclipe, subclipse)

Posted: Wed Sep 30, 2009 5:05 am
by Sikken
Downloads:

1. JDK 6 Update 16
2. Apache Ant + Builder.Bat
3. TortoiseSVN

Now for the fun part ...
Install JDK,TortoiseSVN. Once installed create a new folder somewhere ... anywhere will do, and open it and right click, and select "SVN Repo-Browser", the url you use is "http://svn.assembla.com/svn/L2jOfficial", now right click on "lin2srv" and select "CheckOut" (you will do this for MMOcore, and data.) once finish downloading all of your source files, extract "ant-by-sikken.rar" to "C:/". now there will be "builder.bat" located in the root of your drive "C:/builder.bat", copy that file into the folder you downloaded your source files to. run "builder.bat", wait for it to finish, it dose not take long at all, only 10 minutes for the data.
once done building, there will be a new folder inside your source folder, named build, open that and you will see your "lin2srv.zip".

ps: if you extracted "ant-by-sikken.rar" anywhere else besides "c:/" then you need to edit "builder.bat"

Code: Select all

 @echo offC:/ant/bin/antpause 

If you have anyproblems at all with this guide, please leave a post here, and i will help you.

Re: Compiling Server (without eclipe, subclipse)

Posted: Wed Sep 30, 2009 5:25 am
by Probe
nice topic but SVN is http://www.l2jserver.com/svn/ :)

Re: Compiling Server (without eclipe, subclipse)

Posted: Wed Sep 30, 2009 4:29 pm
by lishawj
He/she is using L2jOfficial...not the same project as L2JServer.

Re: Compiling Server (without eclipe, subclipse)

Posted: Wed Sep 30, 2009 4:43 pm
by Vapulabe
Well, if you are under linux, it's quite simple :

1) install SVN, J2SE (using the package manager is better than using the SUN archive)
2) install the ant package... this will probably have some dependencies (like xalan/xerces for XML processing)
3) use svn checkout your svn repository here (L2J, L2JFree, L2JOfficial or any other will do)
4) in the correct directory (the one with the build files), type "ant" command, you'll find the package as a .jar archive in the build directory (unzip the jar to get the server jar and the data/config/... directories)

Re: Compiling Server (without eclipe, subclipse)

Posted: Mon Oct 05, 2009 6:52 am
by NoX
HI, I have a problem. When I use the builder.bat I got these error, could someone tell me what to do, thank you.
error.JPG


Sorry, i don´t speak or write a good english

Re: Compiling Server (without eclipe, subclipse)

Posted: Tue Oct 06, 2009 2:04 pm
by Ashitaka
Alej wrote:HI, I have a problem. When I use the builder.bat I got these error, could someone tell me what to do, thank you.
Hi Alej,

Please, read the documentation first.
http://l2jserver.com/wiki/Find_Revision#Eclipse

Re: Compiling Server (without eclipe, subclipse)

Posted: Tue Oct 06, 2009 2:21 pm
by janiii
Alej wrote:HI, I have a problem. When I use the builder.bat I got these error, could someone tell me what to do, thank you.
error.JPG


Sorry, i don´t speak or write a good english
what about wait till the build ends? there are no errors, only warning. nothing that would stop you from building the server.

Re: Compiling Server (without eclipe, subclipse)

Posted: Wed Oct 07, 2009 4:54 am
by NoX
Yes to everybody, i were looking on the web, and i read that its doesnt mean anyting that error, at the ende you get the final file, but i never let hin end.

Now I think its ready this, i its easy to use it. thank you

Re: Compiling Server (without eclipe, subclipse)

Posted: Wed Oct 21, 2009 6:47 pm
by NoX
I need to add something and to ask something...

First some time we got an error bc it say that "unable to locate tools.jar expected to find....." we solve this error doing this:


Set it permanently:
- Right click on My Computer
- Go to Advanced tab
- Click on "environment variables" button
- Under users variables, NEW- on the box write "JAVA_HOME", set value to new path (EXAMPLE: C:\Program Files\Java\jdk1.6.0_16) OK OK

AND this fix the problem.

And now I need to ask something... how do I apply this path download/file.php?id=998 using this way???

Thank you

PD. please step by step, and if you know and can tell me where do I have to place those files, i will appreciate that.

Re: Compiling Server (without eclipe, subclipse)

Posted: Thu Oct 22, 2009 10:34 pm
by ThePhoenixBird
Add to Wiki please :P