StendhalLocalhostServerOnLinux: Difference between revisions
Content deleted Content added
imported>Madmetzger |
imported>Kribbel m link for skipping |
||
| (17 intermediate revisions by 5 users not shown) | |||
Line 11:
*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 '''[[StendhalLocalhostServerOnLinux#Choosing_the_Java_Virtual_Machine|Choosing the Java Virtual Machine]]'''.
For '''advanced''' MySQL configuration, keep reading.
Line 45:
== Choosing the Java Virtual Machine ==
Stendhal works with OpenJDK or
For Sun Java: Use your Package manager to download '''OpenJDK
java -version
and if you see anything other than the new java you just installed, then you need to update the java used. At a command line, type
Line 53:
(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.
*''java-gcj 1042 /usr/lib/jvm/java-gcj''
*''java-
now, lets say you want to use the ''java-
update-java-alternatives --set java-
Now run
java
again to check it worked.
Line 136:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
</pre>
''<span style="color:red;">DEPRECATED:</span> "log4j.jar" is now intended to be located in "libs" directory''
Please open runserver.sh in a text editor. You'll see the classpath defined there, something like
LOCALCLASSPATH=.:data/script/:data/conf/:stendhal-server-$STENDHAL_VERSION.jar:marauroa.jar:mysql-connector.jar:log4j.jar:commons-lang.jar
| |||