[Guide] Download and compile source code with Eclipse by Zerphy L2J 

Status
Not open for further replies.
Newbie Spellweaver
Joined
May 27, 2004
Messages
27
Reaction score
0
[mod]
Eragon said:
Read this 1st :

[/mod]

This is a guide for compiling source code of l2j, and it is my first guide in English. If there are mistakes, please tell me, thanks!
Now is the guide!

1. You must install j2se first before you run Eclipse. You can download the package from this link : . Download and install it.

2. Download Eclipse from this link : , and unzip it into you destination folder, such as : c:\Eclipse.

3. Run eclipse.exe in the folder you just unzipped. You will see the dialog box below, just select a folder to save you source code, then click OK button:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



4. Then you will see the workspace of Eclipse. At this step, we begin to download source code of l2j. Click File > New -> Project..., shown as below:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



5. After you click the Project menu item, you will see the New Project dialog box, select CVS > Checkout Projects from CVS in the Wizard box, then click Next button, shown as below:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



6. Then you will see the Checkout from CVS dialog box. Fill in the blanks just shown as in the picture below, then click Next botton:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



7. In this step, you must choice a module from CVS, so you should select Use an existing module radio button, wait for a while, in the box module list box, there are the modules listed in it. You should select L2_Gameserver from the list, then click Finish button, the step shown as below:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



8. Atfter you click the Finish button, you will see the dialog box shown as below, then you should click Run in Background button:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



9. After you click the Run in Background button, you will see an empty workspace of Eclipse. Then double click the region marked with red pen in the picture below, you will see the workspace shown as below:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



10. Wait until the Eclipse download the module you selected. After the whole module has been downloaded, you will see the situation shown as below:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



11. Right click the L2_Gameserver item from the Navigator tag on the left of the workspace, choose Run > Run..., shown as below:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



12. After you select the Run... menu item, you will see the situation shown as below, then select L2_GameServer item from the Configurations list box on the left of the workspace, click Run botton:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums



13. At last, you will see the Eclipse compile the source code, and run the game server, shown as below:


monsterbaster - [Guide] Download and compile source code with Eclipse by Zerphy - RaGEZONE Forums






thanks to zerphy..

U are great man yo!
 
Last edited by a moderator:
good guid, but how do i get the source to turn into the stuff you can download from nightly build? with the .class files and all that...
 
sorry im a noob and i dont know whats going on..
what does compiling this do to the server?
im probably going to get flamed about this :cry:
 
shanks said:
sorry im a noob and i dont know whats going on..
what does compiling this do to the server?
im probably going to get flamed about this :cry:

*equips a flamethrower and shoots and shanks* :)
 
btw, how do i add the armor, weapons etc files to the server files, by using the eclispe prog, not the convertdata thing
 
why do you want to add armor , all the armors ingame are automatically converted from the client when you run convertdata.bat
 
SheikAbdul said:
why do you want to add armor , all the armors ingame are automatically converted from the client when you run convertdata.bat

thats not what i meant, im using Eclipse, and i wanna know how do i add them using Eclipse, i know i can use convertdata.bat, but... u know, whats Eclipse for when it doesn't add the armor files etc into the server files
 
Here, try this page, got pictures and all what your heart desire ^^

 
Thanks monsterbaster for this guide, but as Eragon said there is already a nice tutorial one the net with screenshot and stuff so i added the url to your post.

Don't feel that your guide is useless, it'll be a complement to the other, and you can maybe create a "video guide" like it seems to become popular here :)
 
I need the pictures of this guide !!!!!!! Plssss hellllpppp meeeee
 
Last edited:
g2by said:
I need the pictures of this guide !!!!!!! Plssss hellllpppp meeeee

Omg,enter !
 
I don`t know want I need to do :(


Buildfile: D:\eclipse\workspace\L2_GameServer_C4\build.xml
clean:
[delete] Deleting directory D:\eclipse\workspace\L2_GameServer_C4\build
init:
[mkdir] Created dir: D:\eclipse\workspace\L2_GameServer_C4\build
[mkdir] Created dir: D:\eclipse\workspace\L2_GameServer_C4\build\classes
[mkdir] Created dir: D:\eclipse\workspace\L2_GameServer_C4\build\dist
[mkdir] Created dir: D:\eclipse\workspace\L2_GameServer_C4\build\dist\login
[mkdir] Created dir: D:\eclipse\workspace\L2_GameServer_C4\build\dist\gameserver
version:
[exec] Execute failed: java.io.IOException: CreateProcess: svnversion -n . error=2
compile:
[javac] Compiling 981 source files to D:\eclipse\workspace\L2_GameServer_C4\build\classes

BUILD FAILED
D:\eclipse\workspace\L2_GameServer_C4\build.xml:69: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


Total time: 2 seconds


If u know what is the problem , what is wrong, plsssss tellll meeeee
 
Status
Not open for further replies.
Back