Jump to content

[Guide] - How To Compile With Eclipse + Images + Links | 07/09/11 UPDATED!


Recommended Posts

Posted


 

Hello people, here's my first guide.

My guide is about how to compile with eclipse and explain how the program works.

The guide is short, it looks large because there are lots of images who are good for you to know what to do and its a visual guide too.

The only thing you need is patience.

Well, here's my guide.

 

 


Subversion Installation:


 

Subversion Download: http://sourceforge.net/projects/win32svn/

 


 

1) Execute the program installer and you will see something like this:

 

sv1.jpg

 

2) Click on the "Next" button and you will see that window:

 

sv2.jpg

 

3) Again we click on the "Next" button and the installer will ask you where do you want to install the program, i recommend the default folder.

 

sv3.jpg

 

4) When all be ready, click on "Install" button and the installation will start.

 

sv4.jpg

 

5) After the program was installed just press on the "Finish" button to exit the program installation and go to the next step.

 

sv5.jpg

 

The Subversion is installed and ready to use.

 


Java 7 Installation:


 

Java 7 JDK Download: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

Java 7 JRE Download: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jre-7-download-432155.html

 

Java for Windows x32 bits (I'm using it.):

Download Java 7 for Win x32: http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-windows-i586.exe

 


 

1) Execute the installer and you will see something like this:

 

java1.jpg

 

2) Click on the "Next >" button and we will see something like that:

 

java2.jpg

 

3) Click on the "Next >" button and the installation will start.

At the end of the installation, we will see a window like this:

 

java3.jpg

 

4) Press on the "Finish" button and the Java 7 will be installed and ready for use.

 


Eclipse:


 

Download: http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.5-200906111540/eclipse-SDK-3.5-win32.zip

Update: http://www.mediafire.com/?arf64yc14n11a7e

 


 

Before executing the Eclipse, install the update i made.

Follow the steps:

 

1) Go to: "eclipse/plugins/" and delete the folder called "org.apache.ant_1.7.1.v20090120-1145".

2) Uncompress the file "Update.rar" and paste the folder called "org.apache.ant_1.7.1.v20090120-1145" to the same place the deleted one were.

 

Now, we execute the program by clicking on "eclipse.exe" and wait for the program start.

When the program be executed, you will see something like this:

 

1.jpg

 

Close the "Welcome" message by clicking on the cross.

 

Now we go to the upper menu: "Help -> Install New Software" like the images show it:

 

1.jpg

 

And we will see something like this:

 

2.jpg

 

Click on the "Add" button like the image and on the window who opens click on "Name:" blank, on the blank write "Subversion" and were says "Location:" put that link: http://subclipse.tigris.org/update_1.6.x

And click "OK".

 

3.jpg

 

Mark the buttons and click on "Next >" button.

 

4.jpg

 

Dont tuch anything and click on "Next >"

 

5.jpg

 

Click on "I accept the terms of the license agreements" and click "Finish", wait for the updates download and ready.

 

6.jpg

 

Now, click on the upper menu: "Window -> Preferences"

 

2.jpg

 

And a window appear, a window like that:

 

3.jpg

 

In the menu, we select the option "Java" and after that we select "Installed JREs" and click on the "Search" button like the image shows it:

 

4.jpg

 

When the window appear, click on the "Search" button, search the location of the "Java" folder, who the default folder is: "My Pc - Local Disk (C:) - Program Files - Java". When we find it, we select the folder and we click on "Accept" button.

 

5.jpg

 

And now, you will se 2 types of Java installed. The 2 types are: "jdk1.7.0" and "jre7".

Click on the button of "jdk1.7.0" and click on "OK" button to finish with this step.

 

6.jpg

 

And now, we go to the upper menu and click on "Window -> Show View -> Other..." like the images show it:

 

7.jpg

 

A window will appear. click on "SVN" and after select "SVN Repositories" and click on the "OK" button.

 

8.jpg

 

Now, where say's on the menu below "Problems - Javadoc - Declaration" a new option will be added, who is "SVN Repositories".

Click on "SVN Repositories" and right click on the blank space and click on "New -> Repository Location"

 

9.jpg

 

Now, were says: "URL:", on the text blank, on the right we must put the SVN of the Core and DP.

 

SVN List:

L2JServer Freya

Revision: Last

Core: http://svn.l2jserver.com/trunk/L2J_Server/

DP: http://svn.l2jdp.com/trunk/L2J_DataPack/

 

The "Core" is were all the configuration files are (.properties) and the java files who when you compile the server they be compiled on "l2jserver.jar".

The "DP" (Data Pack) is were all the HTM, XML, etc. files are and where all the Scripts, Quest, Instances are.

 

On "URL:" we put the Core link, like the image:

 

10.jpg

 

We put the link and we click on "Finish".

Wait to load and ready.

After do it with the link of the DP too, you will see something like that:

 

11.jpg

 

 

Now, before adding the Core and DP links, click on the first link and select the option "Checkout"

 

12.jpg

 

Dont tuch anything and click on the "Finish" button.

 

13.jpg

 

It will delay a few minutes because all the files of the Core and DP are been downloaded. The files are saved by default on: "C:/workspace/L2J_Server" (Core) and "C:/workspace/L2J_Datapack" (DP)

 

When the "Checkout" finish his work, you will see something like this:

 

14.jpg

 

Now, we have all ready to compile. Right click on "build.xml" and select the next options: "Run as -> 1 Ant Build" like the image:

 

15.jpg

 

And you will see a proccess on the console.

If the final proccess says: "BUILD SUCCESSFUL" you done all the work without errors and your pack is compiled! CONGRATULATIONS!

If it says "BUILD FAILED", is because you do something worng.

You have to do the same proccess with both checkouts, L2J_Server and L2J_Datapack.

 

Now, with all compiled go to: "C:\workspace\L2J_Server\build" and you will find: "L2J_Server.rar", thats the core compiled. And in: "C:\workspace\L2J_Server\build" there's the "L2J_Datapack.rar" compiled and ready to use.

Now, what we do with this 2 ".rar" files, move them to a folder, for example, a folder called "Server", select them and right click on one of them and click on "Extract Here" like you see it on the image:

 

16.jpg

 

When all be uncompressed, you will have your pack compiled by yourself.

 

CONGRATULATIONS! YOU HAVE BEEN COMPILED YOUR PACK SUSCCESSFULY

 


 

Credits:

 


 

Guide Creation: FFs

 

PS: My English is not very good, sorry :(

 


Posted

very clean and easy to understand thank you very much for this share bro keep it up

 

Thanx to you for read this guide :)

Posted

are you still there ?

 

it's already explained :|

 

I know, but some of the guides are worng or dont have lot of images who explain it better, its just my guide, if it is useless, just delete it, no problem.

Posted

I know, but some of the guides are worng or dont have lot of images who explain it better, its just my guide, if it is useless, just delete it, no problem.

 

//true most of the guides are outdated, like everybody forgets that eclipse changes image and updates making some options unavailebel and this guide is up to date

Posted

//true most of the guides are outdated, like everybody forgets that eclipse changes image and updates making some options unavailebel and this guide is up to date

 

Thanx for the support my friend :)

I'm glad you liked it :D

  • 2 weeks later...
  • 2 weeks later...
Posted

I think this guide should be stickied...right?

 

I think so :)

Its a guide updated to 05/10/11 :) and its for Freya, H5 and another projects who use Java 7

Posted

Hi, i have a little problem that some of you might be able to solve for me?

 

When im doing the update download it stops at the middle and gives me this error:

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://subclipse.tigris.org/update_1.6.x/plugins/com.sun.jna_3.2.7.jar.
Read timed out
Unable to read repository at http://subclipse.tigris.org/update_1.6.x/plugins/org.tigris.subversion.subclipse.core_1.6.18.jar.
Read timed out
Unable to read repository at http://subclipse.tigris.org/update_1.6.x/plugins/org.tigris.subversion.subclipse.doc_1.3.0.jar.
Read timed out
Unable to read repository at http://subclipse.tigris.org/update_1.6.x/plugins/org.tigris.subversion.subclipse.graph_1.0.9.jar.
Read timed out
Unable to read repository at http://subclipse.tigris.org/update_1.6.x/plugins/org.tigris.subversion.subclipse.tools.usage_1.0.1.jar.
Connection reset
Unable to read repository at http://subclipse.tigris.org/update_1.6.x/plugins/org.tigris.subversion.subclipse.ui_1.6.18.jar.
Read timed out
Unable to read repository at http://subclipse.tigris.org/update_1.6.x/plugins/org.tmatesoft.svnkit_1.3.5.7406.jar.
Read timed out

34xmh03.png

Posted

Close and open the eclipse and try again.

If the problem continues, try with this link to make the update: http://subclipse.tigris.org/update_1.4.x

Ok, now i tryed this and it didnt work.. When i used the update link 1.4 i got this error
Cannot complete the install because one or more required items could not be found.
  Software being installed: Subclipse Integration for Mylyn 3.x (Optional) 3.0.0 (org.tigris.subversion.subclipse.mylyn.feature.group 3.0.0)
  Missing requirement: Subclipse Integration for Mylyn 3.x (Optional) 3.0.0 (org.tigris.subversion.subclipse.mylyn.feature.group 3.0.0) requires 'org.eclipse.mylyn.tasks.core [3.0.0,4.0.0)' but it could not be found

And it took me arround 30-60 minutes to do it :O (last time i had eclipse installed i had no problems, and it took me arround 5 minutes to install)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...