Follow this step-by-step guide to set up your own Lineage 2 private server using L2JMobius. From configuring the environment to running the game server, this guide has you covered!
1. Prerequisites
Before we begin, you’ll need to install the following software:
- JDK 21 or higher: Download the Java Development Kit from Oracle.
- Eclipse IDE: Download and install the Eclipse IDE.
- XAMPP: Install XAMPP to run MySQL and other required services from the official website.
2. Setting Up the Environment
- Install JDK 21
Download and install JDK 21 from Oracle. After installation, configure Eclipse to use the installed JDK by navigating toWindow -> Preferences -> Java -> Installed JREs
in Eclipse. - Clone the L2JMobius Repository
Clone the L2JMobius repository using Git with the following command in your Git repository manager or terminal:git clone https://bitbucket.org/MobiusDev/l2j_mobius.git
- Build the Project
After cloning, build the project in Eclipse by right-clicking thebuild.xml
file and selectingRun As -> Ant Build
. The compiled files will be available in thebuild
directory.
3. Installing MySQL (via XAMPP)
Use XAMPP to install and configure MySQL:
- Install XAMPP: Start MySQL through the XAMPP control panel.
- Run the Database Scripts: Run the provided database installer scripts, such as
Database_Installer_GS.vbs
andDatabase_Installer_LS.vbs
.
4. Running the Server
- Start the Login Server
Navigate to thelogin
directory and run:./startLoginServer.sh # For Linux/Mac startLoginServer.bat # For Windows
- Start the Game Server
Navigate to thegameserver
directory and run:./startGameServer.sh # For Linux/Mac startGameServer.bat # For Windows
5. Final Configuration
To connect your client to the private server, modify the hosts file:
your-server-ip l2authd.lineage2.com
After setting this up, launch your Lineage 2 client and enjoy your private server!
Additional Resources
For more detailed instructions and support, visit the L2JMobius forum.