L2JMobius

Project Installation - W64 (install programs to log in game)

Mobius · 1 · 63718

Online Mobius

  • Distinguished King
  • *****
    • Posts: 16011
The following steps describe on how to properly install the project on any Win7 x64 based machine and connect to the game client using the same computer.

What you will need:
-JDK 21: https://www.mediafire.com/file/lb0by9xcvbzapi7/bellsoft-jdk21.0.2%252B14-windows-amd64.msi
-Eclipse: https://www.mediafire.com/file/kryxpp6u4m49eo9/eclipse-java-2024-03-R-win32-x86_64.zip
-XAMPP: https://www.mediafire.com/file/0m05e3p7wdal224/xampp-windows-x64-8.0.30-0-VS16-installer.exe


1. Install JDK 21
-Download JDK 21 https://www.mediafire.com/file/lb0by9xcvbzapi7/bellsoft-jdk21.0.2%252B14-windows-amd64.msi
-Run the file you just downloaded.

2. Download and extract Eclipse.
Download link https://www.mediafire.com/file/kryxpp6u4m49eo9/eclipse-java-2024-03-R-win32-x86_64.zip
Preferably use the C:\eclipse\ folder and set workspace to C:\eclipse\workspace

At this point make sure you use the proper Java version from Eclipse menu -> Window -> Preferences -> Java -> Installed JREs
If you cannot see your JDK installation folder in the list, add it using the Add... button.

3. Eclipse support for git.
- Open your Eclipse.
- Click on the top menu item "Window".
- Select "Show View".
- Click on "Other...".
- From the folder "Git" select "Git Repositories".

4. Checking out the project.
- From the "Git Repositories" window click "Clone a Git repository".
- Type at URI: https://bitbucket.org/MobiusDev/l2j_mobius.git
- Click "Next >" button. Click "Next >" button.
- Type at Directory: C:\eclipse\workspace\L2J_Mobius
- Click the "Finish" button.
- Wait for cloning to complete.
- From the "Git Repositories" window double click "L2J_Mobius [master]".
- Double click "Working Tree".
- Right click on any project.
- Click "Import Projects...".
- Click the "Finish" button.

*If you have a "JRE System Library [JavaSE-21]' in project" warnings.
 Add JDK 21 from menu Window -> Preferences -> Java -> Installed JREs.

5. Compile the project.
- From the "Package Explorer" expand the project tree to see "build.xml".
- Right click "build.xml".
- Select "Run as..".
- Click on "1 Ant Build".
- Wait for the "BUILD SUCCESSFUL" console message.
- Go to C:\eclipse\workspace\L2J_Mobius\build folder to get your L2J_Mobius.zip file.

6. Installing XAMPP.
Download link https://www.mediafire.com/file/0m05e3p7wdal224/xampp-windows-x64-8.0.30-0-VS16-installer.exe

7. Install MySQL service.
- Go to C:\xampp folder.
- Run xampp-control (the one with orange icon).
- Click on the "X" button next to MySQL.
- Click "Yes".
- Use the "Start" button to start the service.

8. Run the server.
- Extract your compiled files to a folder. Preferably "C:\L2J_Mobius".
- Go to "db_installer" folder.
- Use "Database_Installer_GS.vbs" to install the gameserver database.
- Use "Database_Installer_LS.vbs" to install the loginserver database.
- Go to "login" folder.
- Run "LoginServer.vbs".
- Go to "game" folder.
- Run "GameServer.vbs".

9. Connect to the server.
-Download the client provided at readme.txt file.
-Log in game (accounts are auto created).



*Consider checking the following post on optimizing your MySQL.
MySQL setting optimizations