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
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.
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\
Code:
C:\Program Files\MySQL\MySQL Connector J\
7. Click OK and run the project by selecting "Launcher.java" and clicking run. DON'T CHOOSE THE DOCS OF JDBC!!!
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...