#Super penguin power Sunday
1 messages · Page 1 of 1 (latest)
you need to install java jre to run minecraft server
which you neeed depends on the mincraft server version
java 18 or 21 likely will be whats available
Java 21 cause i think im gonna run 1.21
good thing with debian is the package installer is apt
very easy to google search for command reference examples
type java --version in your terminal
or apt search java
try to confirm java not installed and which package it may be installed by
Command not found i think i need be in root
Nvm
Bottom one worked
A lot has pop up
In green text it looks like software
step 2
It cant locate it
sudo apt update
sudo apt install default-jdk
sudo apt install screen
auto apt upgrade
Not a command
Its jdk 17 tho
youve completed the java install already
thats what stable debian has is java 17
you can use screen to hold a virtual terminal open to run minecraft server when your not connected
No port forwarding in this tutorial?
But im gonna set up this first
befire you run the minecraft server
type screen -S minecraft
you can disconnect from the viurtual console with ctrl+alt+d and the server stays running
reconnect with screen -x minecraft
dont runb it as root user
So gotta exit out of root?
Do i gota unzip the mc jar file?
no
ocne you run the jar file the first time minecraft downloads all the other server files
so make a directory for the mc server at /home/username/mcserver
run and setup there
And for what is this
to reconnect to the virtual console
Ah ok
Its says too many arguments
Cd command
cd to your directory you want to use for the minecraft server files
cd Desktop may not be desirable or may not exist
i gotta go for a bit. be back later
Ah ok
there is a problem
java server file is probably set to 1.21
im gonna stop a bit my back is hurting of this unsaul sitting postion
maybe il try again on monday
I may could get on tonight
So i found the issue
Java is too old cause it 17 and server is 1.21.4
there may be options or methods to install openjdk-21 from another debian package repository i'm unaware of rpesently
usually stable linux distros dont rush to have users consume the latest software versions for reliability reasons
unless those distros are considered development or eperimental
if you searched for how to install openjdk-21 on debian 12
you'll find something
There is a screen on:
1287360.prebuild (Detached)
1 Socket in /tmp/screen/S-root.```