Compiling Server (without eclipe, subclipse)

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Sikken
Posts: 53
Joined: Sat Sep 05, 2009 10:03 pm

Compiling Server (without eclipe, subclipse)

Post 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.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Compiling Server (without eclipe, subclipse)

Post by Probe »

nice topic but SVN is http://www.l2jserver.com/svn/ :)
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

Re: Compiling Server (without eclipe, subclipse)

Post by lishawj »

He/she is using L2jOfficial...not the same project as L2JServer.
Vapulabe
Posts: 271
Joined: Wed Mar 19, 2008 10:16 am

Re: Compiling Server (without eclipe, subclipse)

Post 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)
NoX
Posts: 189
Joined: Mon Oct 05, 2009 4:31 am

Re: Compiling Server (without eclipe, subclipse)

Post 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
You do not have the required permissions to view the files attached to this post.
lj2Black Hands : have something en mente + look around + copy +paste + try to improve it :S without knowlege -.-

Image
User avatar
Ashitaka
Posts: 96
Joined: Thu Jul 12, 2007 4:04 am
Location: Spain

Re: Compiling Server (without eclipe, subclipse)

Post 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
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Compiling Server (without eclipe, subclipse)

Post 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.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
NoX
Posts: 189
Joined: Mon Oct 05, 2009 4:31 am

Re: Compiling Server (without eclipe, subclipse)

Post 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
lj2Black Hands : have something en mente + look around + copy +paste + try to improve it :S without knowlege -.-

Image
NoX
Posts: 189
Joined: Mon Oct 05, 2009 4:31 am

Re: Compiling Server (without eclipe, subclipse)

Post 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.
lj2Black Hands : have something en mente + look around + copy +paste + try to improve it :S without knowlege -.-

Image
User avatar
ThePhoenixBird
L2j Inner Circle
L2j Inner Circle
Posts: 1857
Joined: Fri May 27, 2005 5:11 pm

Re: Compiling Server (without eclipe, subclipse)

Post by ThePhoenixBird »

Add to Wiki please :P
Post Reply