Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Minecolab doesn't work for 1.17 server #35

Closed
Shadow0Bit opened this issue Jun 9, 2021 · 9 comments
Closed

[BUG] Minecolab doesn't work for 1.17 server #35

Shadow0Bit opened this issue Jun 9, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@Shadow0Bit
Copy link

Shadow0Bit commented Jun 9, 2021

My notepad outputs an error:
java.lang.UnsupportedClassVersionError: net/minecraft/server/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 59.0

How to reproduce the behavior:
Try to run 1.17 Vanilla server files

It's propably because Java must be updated to newer version. Anyone got idea how to do that?

@Shadow0Bit Shadow0Bit added the bug Something isn't working label Jun 9, 2021
@S-N00B-1
Copy link

Minecraft servers now use Java 16, you might want to change the variable that dictates what java version to download.

@Shadow0Bit
Copy link
Author

Minecraft servers now use Java 16, you might want to change the variable that dictates what java version to download.

Thanks for reply, but if you read bug description, you'll notice I said I know it's because of older Java but I don't know how to update it/change version

@Shadow0Bit
Copy link
Author

Ok so I managed to change Java Version by editing this line:
!sudo apt-get install adoptopenjdk-15-hotspot-jre &>/dev/null
To this:
!sudo apt-get install adoptopenjdk-16-hotspot-jre &>/dev/null

(you can also comment everything under # Install OpenJDK 15 and write this two lines:
sudo add-apt-repository ppa:linuxuprising/java
sudo apt install openjdk-16-jdk
)

But I still get the following error:
Exception in thread "main" java.lang.InternalError: java.lang.reflect.InvocationTargetException...
Link to full error message.

I've tried to run my server file on local pc and it worked just fine.

@genvara
Copy link

genvara commented Jun 18, 2021

Yeah for now you can't use MIneColab to make a 1.17 server, since Java 16 only supports Ubuntu 20.04 and 20.10, and Google Colab's machines run on 18.04.

I also have the same problem.

@thecoder-001
Copy link
Owner

Would look into it in a few hours. It should be pretty easy to switch since we're already using a ppa to get the jdk.

@genvara
Copy link

genvara commented Jun 18, 2021

Would look into it in a few hours. It should be pretty easy to switch since we're already using a ppa to get the jdk.

Here's the thing i tried manually installing the Java 16 JDK and i made sure that it was running it, when launching the JAR It would not launch and spits out errors, unless you are adding a patched jdk into the ppa then idk

@iamtakingithard
Copy link
Contributor

Hello, people added PR which resolves this issue #36

@Shadow0Bit
Copy link
Author

Hello, people added PR which resolves this issue #36

Sorry but your solution isn't realy working
!sudo apt-get install adoptopenjdk-16-hotspot-openj9 &>/dev/null && echo "Yay! Openjdk16 has been successfully installed." || echo "Failed to install OpenJdk16." outputs: "Failed to install OpenJdk16"

@Shadow0Bit
Copy link
Author

Shadow0Bit commented Jun 23, 2021

Ok, now it works now, thanks to @AndreVuillemot160

Quick fix:
Just change the line:
!sudo apt-get install adoptopenjdk-15-hotspot-jre &>/dev/null
To:
!sudo apt-get install adoptopenjdk-16-openj9 &>/dev/null

(In AndreVuillemort160 commit there is adoptopenjdk-16-hotspot-openj9 instead of adoptopenjdk-16-openj9 but I'm sure it's just a typo)

Thanks everyone for help!

Love,
Shadow0Bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants