bob432626
Posts: 20
Joined: Thu May 30, 2019 2:51 pm

trying to set up for a minecraft server... but have some problems

Thu Oct 10, 2019 3:40 am

so i am using this https://www.makeuseof.com/tag/setup-min ... pberry-pi/ to guide me because it has support for raspberry pi 4 (which i have, with 4gbs) but when i get to step 2, the first thing i have a problem with...

the command i am trying to use is ``sudo apt install oracle-java8-jdk``

Package oracle-java8-jdk is not available, but is referred to by another package

can someone help me on this?

User avatar
bomblord
Posts: 134
Joined: Sun Jul 14, 2019 2:54 am

Re: trying to set up for a minecraft server... but have some problems

Sat Oct 12, 2019 2:54 pm

Raspbian Buster and even most older versions of Raspbian "ship" with Java installed so you should be good to go just to run the Minecraft server jar file from the terminal. If all you intend to do is setup an unmodded server for the Java version these are the only steps you need to do.

1. (from terminal) sudo apt-get update && sudo apt-get upgrade
2. Download https://www.minecraft.net/en-us/download/server/
3. Open Terminal and CD to wherever it is (ex cd downloads)
4. (from terminal) java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui (you can adjust the values to dedicate more or less ram to it)
5. Accept the EULA (upon first run it'll create a eula text file change the value to true to accept)
6. Run the command again
7. Connect a client to the Pi's ip address

That's it you're good to go.

User avatar
HawaiianPi
Posts: 4583
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: trying to set up for a minecraft server... but have some problems

Sat Oct 12, 2019 4:41 pm

bob432626 wrote:
Thu Oct 10, 2019 3:40 am
Package oracle-java8-jdk is not available, but is referred to by another package
The licencing for Oracle Java has changed and it's no longer included with Raspbian. Use openjdk instead.

To get the latest runtime version (at the time of this post).

Code: Select all

sudo apt install openjdk-11-jre

To get the full development kit.

Code: Select all

sudo apt install openjdk-11-jdk

To see what versions are available in the repositories you can use the command, apt policy openjdk-*-jre (or jdk).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Return to “Gaming”