Java 17 compatibility

i start there is a error and anything from the plugin works
No description
57 Replies
Kwantux
Kwantux•6mo ago
Hey, seems like you cut off just the important line 😉 could you send the screenshot starting just one line above?
firras
firrasOP•6mo ago
No description
firras
firrasOP•6mo ago
sure sorry i only see the mensage now
Kwantux
Kwantux•6mo ago
That's not an error message of my plugin It's thrown by the plugin ValhallaMMO. Did you try if this error also shows if Networks isn't installed
firras
firrasOP•6mo ago
oh i printed the wrong one
firras
firrasOP•6mo ago
it is instaled but its off
No description
firras
firrasOP•6mo ago
because of a error
Kwantux
Kwantux•6mo ago
Could you send that error
firras
firrasOP•6mo ago
strange now it just dont show anything but dont work too do you know what could it be?
Kwantux
Kwantux•6mo ago
Not any message like "Disabling server plugin Networks" btw, if you don't want to do all the "removing private stuff" job, the website https://mclo.gs fully automatically obfuscates any sensitive data in the logs Are there no other error messages in the log?
firras
firrasOP•6mo ago
nop thank you
Kwantux
Kwantux•6mo ago
Can you search for all outputs that include "Networks" in them? To see if the plugin was correctly loaded
Kwantux
Kwantux•6mo ago
normally it shows smth like this
No description
firras
firrasOP•6mo ago
it litarelly just dont show naything
Kwantux
Kwantux•6mo ago
would it be possible, that you upload the server start log (everything until "Timings reset") to mclogs? Maybe the dependency loader caused an issue
firras
firrasOP•6mo ago
the network have a dependece?
Kwantux
Kwantux•6mo ago
yes, but they install automatically gson, cloudcommandframework and configurate
firras
firrasOP•6mo ago
it dindt instaled anything can i instal manually?
Kwantux
Kwantux•6mo ago
they are managed by the SpigotLibraryLoader These aren't plugins only libraries, so they're not in your plugins folder
Kwantux
Kwantux•6mo ago
It should show something like this
No description
firras
firrasOP•6mo ago
oh ok i think it shows
Kwantux
Kwantux•6mo ago
Does it really never show [Networks] Loading server plugin Networks v2.1.7
firras
firrasOP•6mo ago
nop
Kwantux
Kwantux•6mo ago
did you search for it in the search field or did you look for it it's easy to oversee that line in a giant log
firras
firrasOP•6mo ago
i looked the problem i just can look when the server is starting up after thhat it clears do you know somewhere that its saved?
Kwantux
Kwantux•6mo ago
logs/latest.log in your server files
firras
firrasOP•6mo ago
oh i was look backwords now it makes sense
firras
firrasOP•6mo ago
found it
No description
Kwantux
Kwantux•6mo ago
And the part after Enabling Networks that's where it attempts to start the plugin and where 99% of startup errors occur
firras
firrasOP•6mo ago
No description
firras
firrasOP•6mo ago
here?
Kwantux
Kwantux•6mo ago
yep thanks Can you show me the text on the very right, that is cut off Where it says "this version of the java runtime only recognizes..." I'm pretty sure i know the issue, but I just need to confirm
firras
firrasOP•6mo ago
No description
Kwantux
Kwantux•6mo ago
yep that's it my plugin was built with Java 21 the newest LTS release of Java Your hoster uses Java 17 option 1 would be, that you update the java version on your server to 21. This works on most hosters, but some few sadly don't support doing that. If that isn't possible on your hoster, I can rebuild the file for java 17 The reason I built the file for Java 21 is, that Minecraft 1.20.5 and above requires Java 21 while any version between 1.18 and 1.20.4 support both Java 17 and Java 21
firras
firrasOP•6mo ago
i am using the 1.20.1 version if i update it gonna work?
Kwantux
Kwantux•6mo ago
It may actually it's very possible some hosters set the java version automatically depending on the minecraft version in use
firras
firrasOP•6mo ago
i need to update the java via command i dont have visual interface
Kwantux
Kwantux•6mo ago
Are you using a hoster or a self host second is prob easier
firras
firrasOP•6mo ago
like i host exactly the same as self hosted the config everthing but it host
firras
firrasOP•6mo ago
that is my interface
No description
Kwantux
Kwantux•6mo ago
sudo apt install openjdk-21-jre that installs java 21
firras
firrasOP•6mo ago
/usr/lib/jvm/java-8-openjdk-arm64/jre/bin/java" -Xmx10G -Xms10G -jar forge-1.12.2-14.23.5.2860.jar nogui that command execute a specif java version
Kwantux
Kwantux•6mo ago
Yep, you ofc also need to change the command you're using to start the server ig you have some bash script to launch it that one may need to be modified to java 21 too
firras
firrasOP•6mo ago
i kinda but it is broken
Kwantux
Kwantux•6mo ago
I can build you a java 17 version <t:1719462000:R> but I gotta go now
firras
firrasOP•6mo ago
i already installed but i can start now
Kwantux
Kwantux•6mo ago
does it work
firras
firrasOP•6mo ago
No description
Kwantux
Kwantux•6mo ago
maybe do ls /usr/lib/jvm and take whatever contains 21
firras
firrasOP•6mo ago
nop dont work
Kwantux
Kwantux•6mo ago
hmm, I need to go now, but i might be able to find a solution tomorrow
firras
firrasOP•6mo ago
ok thank you
Kwantux
Kwantux•6mo ago
That one's compiled with java 17
Kwantux
Kwantux•6mo ago
not a permanent solution but should work for now
firras
firrasOP•6mo ago
oh thanks
byquanton
byquanton•6mo ago
Remove the /jre Part
Kwantux
Kwantux•6mo ago
Version 2.1.8 and 2.1.9 were also compiled to be compatible with Java 17 But yes, at some point you need to upgrade to Java 21
Want results from more Discord servers?
Add your server