StendhalLocalhostServerOnLinux: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Madmetzger
imported>Hendrik Brummermann
Java 7 required
Line 45: Line 45:


== Choosing the Java Virtual Machine ==
== Choosing the Java Virtual Machine ==
Stendhal works with OpenJDK or Sun Java, you will need Java 5 or greater.
Stendhal works with OpenJDK or Oracle Java, you will need Java 7 or greater.


For Sun Java: Use your Package manager to download '''OpenJDK 6''' or Sun Java 1.5 or greater version. At a command line, type
For Sun Java: Use your Package manager to download '''OpenJDK 7''' or Oracle Java 7 or greater version. At a command line, type
java -version
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
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: 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:
(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.7.0-oracle 53 /usr/lib/jvm/java-1.7.0-oracle''
*''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-7-openjdk 1061 /usr/lib/jvm/java-7-openjdk''


now, lets say you want to use the ''java-6-openjdk''. Then you type
now, lets say you want to use the ''java-7-openjdk''. Then you type
update-java-alternatives --set java-6-openjdk
update-java-alternatives --set java-7-openjdk
Now run
Now run
java --version
java --version