Emrys Posted June 15, 2009 Posted June 15, 2009 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 Now go to your notepad and copy the code of the patch , I use now the CTF patch. http://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. [/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 : http://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 : On 9/17/2007 at 8:28 AM, John Lamprou said: 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 Quote
SySt3MGaM3RFr3aKs Posted June 18, 2009 Posted June 18, 2009 Owsome Share. But Is Steal Difficult For ME :D +1 :) Quote
3xpl0it3R Posted June 19, 2009 Posted June 19, 2009 TheEnd you are the best ! This is the Best guide for Java.I think is must go to stickies.Cuz is a very useful topic.Thx a lot man. Quote
Vkouk Posted July 5, 2009 Posted July 5, 2009 Very good tutorial man..I need it..Thanks a lot man.:) Quote
Graviton Posted July 5, 2009 Posted July 5, 2009 Is this only for Mod or if i whant to apply a patch for skills like Hide for example? Quote
yankiller Posted July 23, 2009 Posted July 23, 2009 ohhh man really complicated,i cant programm it right,i always do something not right.... Quote
~Sensei~ Posted August 4, 2009 Posted August 4, 2009 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. Quote
agapitos Posted August 17, 2009 Posted August 17, 2009 i dont understand man i press apply patch but when i find this patch i dont understand can you tell me where can i find it ? Quote
Emrys Posted August 20, 2009 Author Posted August 20, 2009 Thx Guys... This toturial is for all the packs and chronicles :D Quote
Recommended Posts
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.