Jump to content

Recommended Posts

Posted

Because i got sick of people ask me every day about installing java mods, I decided to create a simple guide to How to install it!

This will not learn you how to fix errors from theese mods or how to create one.

First of all, you need to set up eclipse.There are many guides to MxC on how to do it.

I prefer this http://www.maxcheaters.com/forum/index.php?topic=3400.0 .

Ok start do everything it sats but when you need to install subeclipse change the site to : http://subclipse.tigris.org/update_1.6.x  , I said to install

the new version because my eclipse have theese.

Now Continue doing what the guide says and Stop reading these after check out.

 

Now lets start My guide:

L2j (without maven) :

 

Do right click on your pack and go to ---> Team--->Apply patch

1zzq7py.jpg

 

Now go to your notepad and copy the code of the patch , I use now the CTF patch.

width=1024 height=640http://i39.tinypic.com/jgtgkm.jpg[/img]

The in eclipse check the clipboard option and press next

Then again next.Now you will see if the patch will have any error , if not press finish.

1k9y8.jpg[/img]

If it has error then you need to add it manually.

 

Open the patch Find the place that need's to be copied and copy thelines with + and delete lines with - .

Now you installed a mod!!!!

 

Go now to the file Build(in workspace) and press Run as --->Ant Build :

width=1024 height=640http://i40.tinypic.com/wus208.jpg[/img]

 

Got to your workspace in the build fordel and you have your pack with your mode.

 

---------------------------------------------------------------------------------------

L2jfree(maven)Sorry guys but I dont have Maven and l2jfree pack on my eclipse so I can have images!!

 

You do the same as before the only differences are :

You need to install maven a guide is here :

Well hello guys because many users dont know how to compile with maven and switch from l2jfree to another team i made this guide

exactly for them

 

This guide has 3 parts

 

         

            Part 1  

            Download and run maven

 

First go to http://maven.apache.org/download.htmland download maven.I suggest you to download with zip and not with other tools

Second when you download it extract it in C: So the location of the programm will be C:\Maven 2.0.7

Then rename Maven 2.0.0.7 to maven.So its location will be C:\maven

Finaly go to to l2jfree source that you download with eclipse.Open the cmd and type C:\maven\bin\mvn assembly:assembly

And it will start toi run maven.Wait it until it finish.

 

             Part 2

             Configure Eclipse

 

Go in the location that you have eclipse(not 3.1 but newer.I prefer 3.3)Start eclipse and select:window/preferences\java/Build Path/Classpath Variables

click "NEW"

and write in "Name"field M2_REPO

And in "Path"filed locate the m2 directory.It will be in C:\Documents and Settings\YOURUSERNAME

Now refresh your workspace and you are set

 

                Part 3

                Install Eclipse Maven plugin

Open eclipse and select help\software updates\find and install\Select new features to install and press the option "New Remote site"

and add:

 

[table][tr][td]Name:m2 plugin

Url:http://m2eclipse.codehaus.org[/table]

 

Press ok and finsh.Then it will download maven plugin when it finish press "Install all"and then when eclipse ask you to restart press "yes"

At the end go to run\external tools\open external tools dialog and select m2 build.And press the option "New lanch configuration"

When you click on "New lanch configuration" option it will pop up a new menu with 2 options.(Base Directory and Goals)

 

In base direcotry select "Browze workspace" and you will see all eclipse projects that you have.Select l2jfree but click on the arrow that it will show you trunk,tags,branches.Select trunk(if you want to complie interlude version)and select gameserver for example.

In "Goals option add the goal assembly:assembly and press run

 

And the gameserver will be compiled.If you want to compiled the loginserver just select login server

 

                          Frequently asked questions

                         I paste them from l2jfree forum

 

I got this error in my console (windows command line)

Code:

 

[table][tr][td]ERROR: JAVA_HOME not found in your environment.

Please set the JAVA_HOME variable in your environment to match the

location of your Java installation[/table]

 

 

You just have to set JAVA_HOME in your environment variable.

workspace => right click => properties => advanced => environment variable

Add new variable JAVA_HOME that target your installation path of JDK (ant not your JRE)

 

Diagnosis: Invalid task 'jar': you must specify a valid lifecycle phase, or a goal

 

The good command is :

mvn assembly:assembly to build your project

 

You can add

-Dmaven.test.skip=true to skip the test

-U to force the download of new maven plugin versions

-o to keep offline

 

mvn clean to clean your build

 

I have an error message, CHECKSUM FAILED

This is just a warning, not an error. The build will continue.

 

Plug-in org.maven.ide.eclipse was unable to load class org.maven.ide.eclipse.preferences.Maven2PreferencePage.

 

 

Eclipse 3.2

plugin < Maveen 2.0 integration 0.0.9 >

 

 

The problem is not with the plugin. What you need to keep in mind is that the plugin is built on top on Maven. So you need to install Maven first and run it at least one time from the command line so that the "Documents and Settings/<username>/.m2" directory is created. Once that is done, go back in Eclipse and everything will be ok.

 

   

                    Usefull tips

 

when you ready to compile  open your cmd and go to the main folder of your workspace project(such c:, cd workspace, cd l2_gamesever_il). When u get on its folder only type ur path to maven and the mvn inside bin folder (u'll be on ur l2_gamesever_il folder, you type c:\maven\bin\mvn assembly:assembly)

 

And Thats it. its takes bout 1~2 mins

 

Have fun...

I hope i help with this guide.Any problems post it here!

But when you do in confications assembly:assembly , go and check Skip test's...And in  your build folder you will have your pack.....

 

Errors:

Build error:

Check installed jres , your jdk java.

or

Check if your workspace's core have any error.

 

Credits : TheEnd

 

 

 

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

very nice guide, nothing new, but still.. =)

 

alltho i think anyone that wants to add a patch.. should be able to apply it manualy, or for most of newbies in l2.. it really sucks, since source changes so fast.

  • 2 weeks later...

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...