StendhalLocalhostServerOnLinux: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Blacklads Undo revision 11670 by Ufizavipupu (Talk) |
imported>Oslsachem →Setting up a localhost server: added hints |
||
| Line 9: | Line 9: | ||
*Command-line access ''(ask system administrator if it's a problem)'' |
*Command-line access ''(ask system administrator if it's a problem)'' |
||
For '''easy''' H2 database configuration (which is shipped with Stendhal and is installation-free) just skip straight to '''Choosing the Java Virtual Machine'''. |
|||
'''Optionally''': |
|||
| ⚫ | |||
Otherwise you can just use the H2 database which is shipped with Stendhal and is installation-free. |
|||
For '''advanced''' MySQL configuration, install MySQL: |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
Also download the java connector library if necessary (it's called ''MySQL Connector/J'' ), and make sure a symbolic/soft link to it named ''mysql-connector.jar'' is on the classpath (e.g. in the directory called ''libs'' inside the ''stendhal_server'' directory) when running ''maraurorad'' later. |
|||
For example: |
|||
ln -s /path/to/file-name/mysql-connector-java-5.1.10.jar mysql-connector.jar |
|||
== Choosing the Java Virtual Machine == |
|||
Stendhal works with OpenJDK or Sun Java, you will need Java 5 or greater. |
Stendhal works with OpenJDK or Sun Java, you will need Java 5 or greater. |
||
| Line 26: | Line 30: | ||
(using sudo if you are an ubuntu user, or as root if you are another linux user) which should give you output something like this: |
(using sudo if you are an ubuntu user, or as root if you are another linux user) which should give you output something like this: |
||
*java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun |
*''java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun'' |
||
*java-gcj 1042 /usr/lib/jvm/java-gcj |
*''java-gcj 1042 /usr/lib/jvm/java-gcj'' |
||
*java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk |
*''java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk'' |
||
now, lets say you want to use the java-6-openjdk. Then you type |
now, lets say you want to use the ''java-6-openjdk''. Then you type |
||
update-java-alternatives --set java-6-openjdk |
update-java-alternatives --set java-6-openjdk |
||
Now run |
|||
| ⚫ | |||
java --version |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
= Setting up MySQL = |
= Setting up MySQL = |
||