Jump to content

Recommended Posts

Posted

Tutorial : Downoad, edit sources and compile an l2jfree project with NetBeans.

(Windows XP version)

 

Notes :

 

      - This is the procedure I've followed for installing everything on my Asus Eee netbook, with standard Windows XP installation.

      Hopefully this will be clean enough and standard enough for anyone with the same OS to follow these simple steps. And maybe other OS's too, but I wouldn't guarantee it

 

      - In a few months I'll probably do this tutorial again for Windows Seven, if anything should be different.

 

      - If you want to compile on an UNIX-based system, I enjoin you to follow this link, where it is clearly exposed how to do so. (FIXME: LINK IS MISSING)

 

 

Step 1 : JDK.

 

      - Follow this link : http://java.sun.com/javase/downloads/index.jsp

      - Choose the JDK 6 Update 16 (or any newer version that you may find at the time you read this tutorial) by clicking on the orange "Download" button.

      - Choose Windows in the "platform" list. If you use Windows XP 64 of course, you should choose "Windows x64".

      - Click on the checkbox and then "continue"

      - On this page, click on the ".exe" link and download. Then install it as you would normally do with any windows program.

 

 

Step 2 : NetBeans

 

      - Go on this page : http://www.netbeans.org/downloads/

      - Choose the "download" button in the first column. You don't need extra stuff if you just want to mess with the l2jfree project. However, feel free to look around if you're interested in working with netBeans on other projects or languages.

      - Launch the install of the executable file you have just downloaded. At some point in the installation you will be asked to indicate the path to the JDK. If it isn't filled automatically by the installer, enter the path you have chosen in step 1 to install the JDK.

      - Launch the application and do all the suggested updates.

 

 

Step 3 : Subversion

 

      - Go there : http://www.open.collab.net/downloads/netbeans/

      - Choose the CollabNet Subversion Command Line Client v1.5.5 (for Windows)

      - Click on the orange download button, create an account and get the .exe file.

      - Install it

      - Open your command line (cmd.exe). Type "svn --version" and then enter. If you get an error message, do the following :

            - Go to Configuration panel->System->Advanced->Environment variables

            - In the system variables, Modify the path variable and add at the end the following :

            ";C:\Program Files\CollabNet Subversion Client" without the quotes. If you have installed subversion somewhere else, of course, enter the corresponding path in place of this one.

            - Check if it works by relaunching cmd.exe and typing svn --version again.

 

 

Step 4 : Checkout !

 

      - Restart NetBeans. All the updates should be done by now.

      - In the team menu, choose Subversion -> Checkout...

      - The repository URL is : http://svn.l2jfree.com/svn/l2j-free/

      - Browse the repository folders. The unstable but most up-to-date version is the one contained in trunk. Stable versions are in archive (last stable for each chronicle/throne) and tags (each version of login/gameserver)

      - Choose the local folder in which all the sources will be extracted.

      - Click on finish.

      - A project should have appeared in your left sidebar, called l2jfree-main something. Extend it, then choose module, and you should see the different parts : l2jfree-core, l2jfree-login, etc.

      - Open them all by right-clicking and choosing "Open Project".

 

 

Step 5 : Maven

 

      - Well, now you've got all your sources, you can edit them as you like, but you might want to compile now.

      - You need to download maven http://www.apache.org/dyn/closer.cgi/maven/source/apache-maven-2.2.1-bin.zip

      - Unzip it wherever you like but remember the path !

      - In NetBeans, open the Tools menu and select Options.

      - Click on the "Miscellaneous" icon.

      - Click on "Maven"

      - In the "External maven home" textbox, enter the path I asked you to remember earlier.

      - In the "global options definition" field, write "-Dmaven.test.skip=true" (without quotes of course)

 

 

Step 6 : Finally, compile !

 

      - Now right click on an opened project (first you need to compile l2j-commons and mmocore in order to make it work for login and core) and choose Custom -> Goals...

      - There, in the "Goals" field, just write "assembly:assembly" and then click "OK". Compilation should start.

      - If you get an error saying something like "Java heap space / out of resources", you need to go to your Maven directory, in the "bin" subdir, and edit the mvn.bat file :

            - Find the line beginning by the following string : "%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR%"

            - Replace it with "%MAVEN_JAVA_EXE% %MAVEN_OPTS% -Xmx1024m -classpath %CLASSWORLDS_JAR%"

            - If you have 1 Go of RAM or less, you might want to write "-Xmx512m" instead, because your system won't be ale to allocate 1 Go for the heap.

            - Retry compiling.

      - Your server is now compiled and ready to be run.

 

all credits go to shinzer0

Posted

Thnx for the guide Serk maybe i will check it later but as Matim says Eclipse is better anyway, ty

Posted

Why eclipse is better ? I think netbeans is faster and it have easy interface :) Ty

 

Because of coding amenities.

  • 2 months later...
Posted
Step 3 : Subversion

 

      - Go there : http://www.open.collab.net/downloads/netbeans/

      - Choose the CollabNet Subversion Command Line Client v1.5.5 (for Windows)

      - Click on the orange download button, create an account and get the .exe file.

      - Install it

      - Open your command line (cmd.exe). Type "svn --version" and then enter. If you get an error message, do the following :

            - Go to Configuration panel->System->Advanced->Environment variables

            - In the system variables, Modify the path variable and add at the end the following :

            ";C:\Program Files\CollabNet Subversion Client" without the quotes. If you have installed subversion somewhere else, of course, enter the corresponding path in place of this one.

i don this all but in CMD i have error

 

C:\Documents and Settings\Leki>svn --version
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is not set
svn: warning: please check that your locale name is correct
svn, version 1.6.12 (r955767)
compiled Jun 21 2010, 16:00:59

 

what is problem?

            - Check if it works by relaunching cmd.exe and typing svn --version again.[/quote

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Tell a Škoda 1.4 driver that a Škoda 1.8 is faster — and suddenly, you’re riding a mini race car. On the way, they might share random stories — gas prices, the perfect BBQ recipe, or how passengers once called them “just for a minute.” Maybe even how someone left a suitcase full of money in their car once.     The important part? You’ll get there on time, no delays.     Vibe SMS works just as fast — messages fly like that driver who just heard their 1.8 isn’t the fastest.     🌐 https://vibe-sms.net/ 📲 https://t.me/vibe_sms  
    • ⚔️ The Grand Opening Has Arrived! ⚔️ In just a few hours the gate to the eternal battlefield will be open and the war between Order and Chaos will be set once again ! Its time to claim your destiny 🔥 👉 Register now and join the fight today! 🌐 https://l2ovc.com register now : https://l2ovc.com The gates are open the war between Order and Chaos has officially started! 🔥 Join the battlefield NOW and claim your destiny in Order vs Chaos! 💥 Don’t fall behind your faction needs you. ➡️ https://l2ovc.com  
    • Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Don’t miss the new Telegram gifts with our Telegram Stars purchasing bot! A great opportunity to invest in a stable digital asset at an early stage while the market is still forming. Buy other existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium subscriptions, and react to messages in channels! Low prices, multiple payment options, and other cool unique features! ⚡ Try it today — SOCNET STARS BOT ⚡ Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. ⭐ Telegram Stars Purchase Bot: Go – fast and profitable way to buy stars in Telegram. SMM Panel: Go – promote your social media accounts. We present to you the current list of promotions and special offers for purchasing our products and services: 1️⃣ Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in October! You can also use the promo code SOCNET (15% discount) for your first purchase. 2️⃣ Get $1 on your store balance or a 10–20% discount — just write your username after registration on our website using the template: "SEND ME BONUS, MY USERNAME IS..." — post it in our forum thread! 3️⃣ Get $1 for your first SMM Panel trial — simply open a ticket titled “Get Trial Bonus” on our website (Support). 4️⃣ Weekly ⭐ Telegram Stars giveaways in our Telegram channel and in our Telegram Stars bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts and Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock