GithubHelp home page GithubHelp logo

Comments (6)

dmikusa avatar dmikusa commented on June 21, 2024 1

Again, we cannot add this until it's released by Bellsoft. They don't have Java 19 support yet, so we cannot add it. As soon as they do, we'll add it.

We should be able to add this for GraalVM Buildpack though. Give us a few days to get that updated and released, you can then use these instructions to use GraalVM instead of Bellsoft NIK.

from bellsoft-liberica.

dmikusa avatar dmikusa commented on June 21, 2024 1

A couple of notes here:

  1. According to our vendor Bellsoft, they are not going to support Java 19 in NIK. It goes out of support in Jan 2023, so it's not really enough time. They are contemplating support for Java 20, and will definitely support Java 21 which is the next LTS. Their general strategy is to support the LTS versions, but they may support some non-LTS versions as well.
  2. GraalVM has experimental support for Java 19, so I added this into the GraalVM buildpack. You can use that if you want to try out Java 19.

To build with GraalVM, see these instructions.

It's basically like this though:

pb my-cool-app -b paketo-buildpacks/graalvm -b urn:cnb:builder:paketo-buildpacks/java -e BP_NATIVE_IMAGE=true -e BP_JVM_VERSION=19

Or set the buildpack list in build.gradle or pom.xml if you're using the Spring Boot Gradle/Maven build tools.

from bellsoft-liberica.

dmikusa avatar dmikusa commented on June 21, 2024

This is an upstream limitation, Bellsoft doesn't have NIK available for Java 19 at the moment. If/when they make it available, we'll add it. For the time being, you'd need to stick with Java 11 or 17 for building native image apps.

from bellsoft-liberica.

MetaiR avatar MetaiR commented on June 21, 2024

I have the same issue.
the jdk 19 is really important due to the new features such as project loom (which makes us able to use virtual threads), so please consider adding support for it

from bellsoft-liberica.

MetaiR avatar MetaiR commented on June 21, 2024

@dmikusa
thanks for all of ur effort in this matter.
could u please represent a simple pom.xml or build.gradle in gist or somewhere else? it would be very very helpful

from bellsoft-liberica.

dmikusa avatar dmikusa commented on June 21, 2024

See the maven docs, the <buildpacks> tag is what you want. It takes a list of buildpacks. You would use the same two buildpacks I mentioned in my previous note. Example here.

from bellsoft-liberica.

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.