Installing Java

No matter what optional packages you may need or want, at a minimum you’ll need Java to run your server. You can install it just like we did earlier in the book, but bear in mind one important detail: you need the official Oracle (formerly Sun) version of Java. The OpenJDK version of Java, which may be available or already installed on your system, is known to cause problems with Minecraft.

You may need to uninstall OpenJDK using your system’s package manager. For instance, to remove the 1.6 version on a system that uses the Red Hat Package Manager (RPM), you’d run this:

 
$ ​rpm -e java-1.6.0-openjdk

Now go get the good Java. You’ll have to download the installation program on your local computer, then scp it up to your ...

Get Learn to Program with Minecraft Plugins, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.