How To Repair Manulaiko Beta 3.0 Java Emulator

03/29/2014 20:22 adc24#1
Hi, I'm Newbie at this forum and my english isn't good. This is my first Tutorial :D

At this forum i see a lot of problems about newly Java Darkorbit emulator. At this tutorial You'll know, how to repair this problem:

Code:
DarkOrbit Emulator 1.0

Reading configuration file...
Settigns file readed!
Connection to MySQL...
Couldn't connect to MySQL!
No suitable driver found for jdbc:mysql://localhost/dorps
How To Repair

I'm beginner at Java, but i know PHP, MySQL, HTML. I seen this:
No suitable driver found for jdbc:mysql://localhost/dorps

What is JDBC (Java Database Connectivity)?
Code:
JDBC is a Java-based data access technology (Java Standard Edition platform) from Oracle Corporation. This technology is an API for the Java programming language that defines how a client may access a database. It provides methods for querying and updating data in a database. JDBC is oriented towards relational databases. A JDBC-to-ODBC bridge enables connections to any ODBC-accessible data source in the JVM host environment.
Source: Wikipedia (Page: Java Database Connectivity)

This is library. We must import this to Eclipse.

1.Download this library (for MySQL):

2. Click "Download" and skip creating a Oracle account by clicking "No thanks, just start my download."

3. Just install this library by clicking mysql-connector-java-gpl-xxx.msi
(xxx – Version of library)

4. Open Eclipse and click right button on project. Select Build Path -> Configure Build Path.

5. Select the tab "Librares" and click "Add External JARs".

6. Go to folder: (x64 bits system based)
Code:
C:\Program Files (x86)\MySQL\MySQL Connector J\
or (x86 bits system based)
Code:
C:\Program Files\MySQL\MySQL Connector J\
and select mysql-connector-java-xxx-bin (xxx – Version of library).

7. Click OK and run the project by selecting "Launcher.java" and clicking run. DON'T CHOOSE THE DOCS OF JDBC!!! :rtfm:

If we'll done this, we'll can launch emulator and see the logs:
Code:
DarkOrbit Emulator 1.0

Reading configuration file...
Settigns file readed!
Connection to MySQL...
Connected to MySQL!
Loading data from the database...
117 ships loaded!
2 clans loaded!
33 maps loaded!
45 portals loaded
2 accounts loaded!
Starting up socket servers...
Listening on port 8080
Listening on port 9338
Servers running!!!
Waiting for connections...
Have a nice day for all! :cool:
04/06/2014 05:38 leothefox1#2
Hi !

i got this error:

[Only registered and activated users can see links. Click Here To Register...]

Help !
10/13/2014 14:48 steppdroid#3
Good Job!