Code Monkey home page Code Monkey logo

Comments (9)

S-N00B-1 avatar S-N00B-1 commented on May 18, 2024

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

from minecolab.

Shadow0Bit avatar Shadow0Bit commented on May 18, 2024

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

from minecolab.

Shadow0Bit avatar Shadow0Bit commented on May 18, 2024

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.

from minecolab.

genvara avatar genvara commented on May 18, 2024

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.

from minecolab.

thecoder-001 avatar thecoder-001 commented on May 18, 2024

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.

from minecolab.

genvara avatar genvara commented on May 18, 2024

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

from minecolab.

iamtakingithard avatar iamtakingithard commented on May 18, 2024

Hello, people added PR which resolves this issue #36

from minecolab.

Shadow0Bit avatar Shadow0Bit commented on May 18, 2024

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"

from minecolab.

Shadow0Bit avatar Shadow0Bit commented on May 18, 2024

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.

from minecolab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.