Newbie Spellweaver
- Joined
- Feb 2, 2014
- Messages
- 74
- Reaction score
- 22
Hello,
This guide will tell you how to compile and run Jenova Project - Tera emulator based on java by Angelis86 locally.
What you will need:
Up to date EU Tera client by Gameforge. (
TortoiseSVN (
The source from Angelis86 checked out. (
Java JDK 8u05 (
Maven (
XAMPP (this guide shows you how to connect to MySQL using XAMPP.) (
MySQL (you don't need to download it if you have downloaded XAMPP, but if you choose to download this one you're on your own.)(
7zip or Winrar (
Optional: Notepad++ (recommended) (
Step 1: Checking out the source.
Assuming you have the Tera client downloaded and updated to the latest version you should now download
TortoiseSVN. Install it to any place you like. Now create a new folder somewhere on your computer and
right click it and press "SVN Checkout..." Now copy and paste the subversion link of Angelis' source.
(
Let it download.
Step 2: Setting environment variables.
Download the Java JDK 8u05 and install it. Open cmd (windows key + R and type cmd) and type in java -version.
If it displays the java version you're good for the java environments, but you still have to set the maven environments.
Download apache-maven-3.2.1-bin.zip and unzip it to where you want to install it,
for example C:\Program Files\Apache Software Foundation\apache-maven-3.2.1
Now press your Windows Key + Pause, next press Advanced system settings on your left and then click Environment Variables...
Set the JAVA_HOME environment variable under User variables to point to the base directory location where Java is installed on your machine.
Click New...
Set variable name: JAVA_HOME
Set Variable value to where you installed java jdk for example:
C:\Program Files\Java\jdk1.8.0_05
Next create the user variable M2_HOME with value C:\Program Files\Apache Software Foundation\apache-maven-3.2.1 or wherever you installed it.
Now create the user variable M2 with value %M2_HOME%\bin.
Create the user variable MAVEN_OPTS with value -Xss10M
Edit the PATH user variable, if it doesn't exist under user variables create it now with the
name PATH and variable %JAVA_HOME%\bin;%M2_HOME%\bin
Under system variables edit the variable Path.
Go the furthest end of the Variable value field and put ;C:\Program Files\Java\jdk1.7.0_51\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.2.1
Click ok.
Now open cmd again by clicking Windows Key + R and type cmd.
Type: java -version
If the version comes up in cmd you're good with the java variables.
next type: mvn -version
Same here, if maven version comes up you're good to go.
And you're done with setting the variables!
If for some reason maven still doesn't work, try this quick fix:
Open cmd and type: set PATH=%PATH%;%M2_HOME%\bin
Step 3: Setting up MySQL using XAMPP
Download and install XAMPP. I like because it has Apache, MySQL, FileZilla, Mercury and Tomcat all in one application.
Start up XAMPP and under Service click the red X under Apache and MySQL. Let it finish.
Next click Admin under Apache.
Navigate to Security, click the link that says
Under the MySQL Section don't type in anything under Current password
Type any password you like under New password and repeat it.
Click Password changing.
Now go back to the XAMPP control panel and click Config under Apache. Click phpMyAdmin (config.inc.php)
Type in your MySQL password here: $cfg['Servers'][$i]['password'] = '';
so it looks something like this: $cfg['Servers'][$i]['password'] = 'my-password';
and save it.
Press Admin under MySQL in the XAMPP control panel.
You should see some databases to your left. Click on New at the top and name it tera.
You're done with step 3!
Step 4: Compiling the java source by Angelis86.
Navigate to the folder you checked out the source in with the command prompt by typing cd
and then the path to the source.
(path to checked out source)\TeraBuilder
Press enter and then type:
mvn clean compile package
Now the server should be compiled and there should be a bin folder in the TeraBuilder folder.
If there is a TeraGame.jar in bin\game with the size around 8mb it finished successfully.
Next go into bin\game\conf and edit the hibernate.cfg.xml with your MySQL password.
Step 5: Running the server and connecting to localhost.
Run start.bat in the ...\TeraBuilder\bin\game folder and wait until everything has finished loading.
Check to see if the tables was created under the tera database in MySQL by going to the XAMPP control panel
and pressing Admin under MySQL and opening the tera database. There should now be 7 tables in there.
If there aren't, simply go into bin\game\conf and edit hibernate.cfg.xml and uncomment the line that looks like this:
<!-- <property name="hbm2ddl.auto">create-drop</property> -->
so it looks like this:
<property name="hbm2ddl.auto">create-drop</property>
Now run start.bat again, the tables should now be created. Now you can comment that line again so the tables aren't created everytime you start the server.
Next download this file
C:\Program Files (x86)\TERA
There should now be a launch.bat and Tera.en.exe in your tera folder. (Or tera.fr.exe if you want to start the client in french.)
Run launch.bat and enter any username you like and any password you like. choose FR or EN as language.
Congratulations you can now connect to your local server!
If you want to connect over the internet to your newly compiled Java server, go here: http://forum.ragezone.com/f798/tutorial-connecting-java-server-internet-997818/
This guide will tell you how to compile and run Jenova Project - Tera emulator based on java by Angelis86 locally.
What you will need:
Up to date EU Tera client by Gameforge. (
You must be registered to see links
)TortoiseSVN (
You must be registered to see links
)The source from Angelis86 checked out. (
You must be registered to see links
)Java JDK 8u05 (
You must be registered to see links
)Maven (
You must be registered to see links
)XAMPP (this guide shows you how to connect to MySQL using XAMPP.) (
You must be registered to see links
)MySQL (you don't need to download it if you have downloaded XAMPP, but if you choose to download this one you're on your own.)(
You must be registered to see links
)7zip or Winrar (
You must be registered to see links
) or (
You must be registered to see links
)Optional: Notepad++ (recommended) (
You must be registered to see links
)Step 1: Checking out the source.
Assuming you have the Tera client downloaded and updated to the latest version you should now download
TortoiseSVN. Install it to any place you like. Now create a new folder somewhere on your computer and
right click it and press "SVN Checkout..." Now copy and paste the subversion link of Angelis' source.
(
You must be registered to see links
)Let it download.
Step 2: Setting environment variables.
Download the Java JDK 8u05 and install it. Open cmd (windows key + R and type cmd) and type in java -version.
If it displays the java version you're good for the java environments, but you still have to set the maven environments.
Download apache-maven-3.2.1-bin.zip and unzip it to where you want to install it,
for example C:\Program Files\Apache Software Foundation\apache-maven-3.2.1
Now press your Windows Key + Pause, next press Advanced system settings on your left and then click Environment Variables...
Set the JAVA_HOME environment variable under User variables to point to the base directory location where Java is installed on your machine.
Click New...
Set variable name: JAVA_HOME
Set Variable value to where you installed java jdk for example:
C:\Program Files\Java\jdk1.8.0_05
Next create the user variable M2_HOME with value C:\Program Files\Apache Software Foundation\apache-maven-3.2.1 or wherever you installed it.
Now create the user variable M2 with value %M2_HOME%\bin.
Create the user variable MAVEN_OPTS with value -Xss10M
Edit the PATH user variable, if it doesn't exist under user variables create it now with the
name PATH and variable %JAVA_HOME%\bin;%M2_HOME%\bin
Under system variables edit the variable Path.
Go the furthest end of the Variable value field and put ;C:\Program Files\Java\jdk1.7.0_51\bin;C:\Program Files\Apache Software Foundation\apache-maven-3.2.1
Click ok.
Now open cmd again by clicking Windows Key + R and type cmd.
Type: java -version
If the version comes up in cmd you're good with the java variables.
next type: mvn -version
Same here, if maven version comes up you're good to go.
And you're done with setting the variables!
If for some reason maven still doesn't work, try this quick fix:
Open cmd and type: set PATH=%PATH%;%M2_HOME%\bin
Step 3: Setting up MySQL using XAMPP
Download and install XAMPP. I like because it has Apache, MySQL, FileZilla, Mercury and Tomcat all in one application.
Start up XAMPP and under Service click the red X under Apache and MySQL. Let it finish.
Next click Admin under Apache.
You must be registered to see links
should now open in your web browser.Navigate to Security, click the link that says
You must be registered to see links
Under the MySQL Section don't type in anything under Current password
Type any password you like under New password and repeat it.
Click Password changing.
Now go back to the XAMPP control panel and click Config under Apache. Click phpMyAdmin (config.inc.php)
Type in your MySQL password here: $cfg['Servers'][$i]['password'] = '';
so it looks something like this: $cfg['Servers'][$i]['password'] = 'my-password';
and save it.
Press Admin under MySQL in the XAMPP control panel.
You should see some databases to your left. Click on New at the top and name it tera.
You're done with step 3!
Step 4: Compiling the java source by Angelis86.
Navigate to the folder you checked out the source in with the command prompt by typing cd
and then the path to the source.
(path to checked out source)\TeraBuilder
Press enter and then type:
mvn clean compile package
Now the server should be compiled and there should be a bin folder in the TeraBuilder folder.
If there is a TeraGame.jar in bin\game with the size around 8mb it finished successfully.
Next go into bin\game\conf and edit the hibernate.cfg.xml with your MySQL password.
Step 5: Running the server and connecting to localhost.
Run start.bat in the ...\TeraBuilder\bin\game folder and wait until everything has finished loading.
Check to see if the tables was created under the tera database in MySQL by going to the XAMPP control panel
and pressing Admin under MySQL and opening the tera database. There should now be 7 tables in there.
If there aren't, simply go into bin\game\conf and edit hibernate.cfg.xml and uncomment the line that looks like this:
<!-- <property name="hbm2ddl.auto">create-drop</property> -->
so it looks like this:
<property name="hbm2ddl.auto">create-drop</property>
Now run start.bat again, the tables should now be created. Now you can comment that line again so the tables aren't created everytime you start the server.
Next download this file
You must be registered to see links
and unrar it into your TERA folder, example:C:\Program Files (x86)\TERA
There should now be a launch.bat and Tera.en.exe in your tera folder. (Or tera.fr.exe if you want to start the client in french.)
Run launch.bat and enter any username you like and any password you like. choose FR or EN as language.
Congratulations you can now connect to your local server!
If you want to connect over the internet to your newly compiled Java server, go here: http://forum.ragezone.com/f798/tutorial-connecting-java-server-internet-997818/
Last edited: