We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

[GUIDE] How to install L2J Server on Windows

Have you created a useful tool? or Do you want to get help building one? This is the right place!
Forum rules
READ NOW: L2j Forums Rules of Conduct
Locked
User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

[GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:39 pm

This guide contains basic information how to run server on Windows x32/x64
The guide don't contains security tips or good practices so don't use it for production server!

In this guide will show you how to download, build and setup L2Jserver from scratch in 10 simple steps. :wtf:

For this guide i will use follow software:
  1. Java JDK 8u131
  2. Eclipse IDE for Java EE Developers
  3. XAMPP
  4. HeidiSQL
  5. 7z
Without number 1 (Java) all other software have alternative what can be used, feel free to experiment. :+1:

Follow this step in this order to setup and run the server.

Step 0: Found your Windows version and type
Step 1: Create server directory
Step 2: Download listed software
Step 3: Install it
Step 4: Adjust Java
Step 5: Setup Eclipse
Step 6: Download source files
Step 7: Compile source files
Step 8: Setup DataBase
Step 9: Install the Server
Step 10: Run the Server

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:40 pm

Step 0 : Found your Windows version and type:

Press windows button + R
Image

Enter "cmd" and press Enter or click OK
Image

Copy and Paste (In windows terminal Paste text is with right mouse button)

Code: Select all

systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
Image

Check System Type for x32 or x64 (if there is no numbers is x32)

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:42 pm

Step 1: Create server directory:

Create follow structure
  • D:\l2jserver
    • server
    • tools
Image

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:42 pm

Step 2: Download listed software:

For all followed software download type based on your machine if there is only x32 version download it anyway.

Download all files in D:\l2jserver\tools

ImageDownload Java
SPOILER:
Image
(Programing language required for run the server)

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

ImageDownload Eclipse IDE for Java EE Developers
SPOILER:
Image
(Download edit and build server files)

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

ImageDownload XAMPP
SPOILER:
Image
(MariaDB database)

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

ImageDownload HeidiSQL
SPOILER:
Image
(Manage the database)

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

ImageDownload 7z
SPOILER:
Image
(For unzip the files)


At the end you need to have that
Image

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:43 pm

Step 3: Install it:
7z
SPOILER:
Image

Image

Can delete installer
Java
SPOILER:
Image

Image

Image

Image

Can delete installer
XAMPP
SPOILER:
Image

Image

Image

Image

Image

Image

Can delete installer
Eclipse
SPOILER:
Image

Can delete zip
HeidiSQL
SPOILER:
Image

Can delete zip

At the end you need to have follow in folder:

Image

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:43 pm

Step 4: Adjust Java:

Java require some tweaks for not make problems. :think:

Image

Image

Image

Image

Find your java current JDK folder

Image

Current tutorial use 1.8.0_131 but your one can be different!
Copy the link (don't forget bin folder) return in System Environments

Image

Replace with your path. As result need to be like this (don't forget you can have different numbers)

Image

Restart the computer!!!

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:44 pm

Step 5: Setup Eclipse:

Open eclipse "D:\l2jserver\tools\eclipse\eclipse.exe"

Image

Image

Image

Image

Image

Image

Image

Image

Image

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:45 pm

Step 6: Download source files:

Code: Select all

https://bitbucket.org/l2jserver/l2j_server.git
Image

Image

Image

Code: Select all

https://bitbucket.org/l2jserver/l2j_datapack.git
Image

Image

Image

Image

Image

Image

Image

Image

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:45 pm

Step 7: Compile source files:

Image
Wait till "3" end with building.

Image
Double click or right button > Run Gradle Tasks

Image
Wait till finish

When compile in console will see
Image

For take compiled files need to visit follow directories

Code: Select all

D:\l2jserver\tools\workspace\git\l2j_server\build\distributions
L2J_Server_DATE.zip

Code: Select all

D:\l2jserver\tools\workspace\git\l2j_datapack\build\distributions
L2J_DataPack_DATE.zip

Copy that zips into

Code: Select all

D:\l2jserver\server
Need to have some like this (dates will be different)
Image

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:47 pm

Step 8: Setup DataBase:

Start Database server
Go into

Code: Select all

D:\l2jserver\tools\xampp
And start xampp-control.exe

Image

Image

Image

Create databases
Go into

Code: Select all

D:\l2jserver\tools\HeidiSQL_9.4_Portable
And start heidisql.exe

Image

Image

User password change

Image

Image

Change password of all "root" users to

Code: Select all

toor
Image

Conenct with new password

Image

Create databases

Image

Image

Image

Close HeidiSQL

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:48 pm

Step 9: Install the Server:

Go to

Code: Select all

D:\l2jserver\server
And unzip both.
Image

Image

Can delete zip files.

Install SQL data
Go in

Code: Select all

D:\l2jserver\server\tools
Start dbinst_ls.jar
Image

Image

Image

Image

Start dbinst_gs.jar
Image

Image

Image

Image

Image

Image

Register login server
Go in

Code: Select all

D:\l2jserver\server\login
Start RegisterGameServer.bat

Image

Image

Image

Cut hedix.txt file
Image

Move it in

Code: Select all

D:\l2jserver\server\game\config
Image

User avatar
Zealar
L2j Junior Developer
L2j Junior Developer
Posts: 1235
Joined: Sun Jul 15, 2007 10:29 am

Re: [GUIDE] How to install L2J Server on Windows

Post by Zealar » Sun May 14, 2017 4:48 pm

Step 10: Run the Server:

For server to run database need to be up.
XAMPP advantage.
Image

XAMPP control center give you easy control on MySQL(MariaDB) server so we can start i only when need it also easy start/stop/restart.
But still if want we can start it with administrator rights and enable "1" Service or more sepeciic configs from "3" Config.
But if we don't use server non stop easy can just use "2" Start when need it and stop it when we done.
DATABASE NEED TO RUNNING FOR START THE SERVER

Go in

Code: Select all

D:\l2jserver\server\login
Start startLoginServer.bat

Go in

Code: Select all

D:\l2jserver\server\game
Start startGameServer.bat

Image

Image

Locked

Who is online

Users browsing this forum: No registered users and 1 guest