Git Product home page Git Product logo

Comments (6)

mukel avatar mukel commented on June 2, 2024 1

Shouldn't it be META-INF/native-image/... ?

from graal.

nreid260 avatar nreid260 commented on June 2, 2024

I have confirmed that running unzip -> zip fixes this issue, so there's definitely some part of the ZIP format that native-image doesn't support.

I also noticed that resource-config.json matching fails in the original JAR. Probably the same underlying cause.

from graal.

fernando-valdez avatar fernando-valdez commented on June 2, 2024

You can manually include resources using the -H:IncludeResources flag when running native-image. This can be a workaround if automatic detection fails:

native-image -jar my_strange.jar -H:IncludeResources="META-INF/native-image/.*"

As a diagnostic step, try creating a simpler version of the JAR without the self-extracting feature and in standard zip format, if possible. This can help isolate the issue to the zip64 or self-extracting features.

Finally, can you please use the latest version of Oracle GraalVM instead of GraalVM CE and share your results?

from graal.

nreid260 avatar nreid260 commented on June 2, 2024

I have confirmed that the issue is with self-extracting JARs.

from graal.

fniephaus avatar fniephaus commented on June 2, 2024

Thanks for the report, @nreid260. We understand you can't share your application, but is there any way you could put together a self-extracting JAR, or instructions for creating one, for a simple example that we can use to reproduce this?

from graal.

fernando-valdez avatar fernando-valdez commented on June 2, 2024

Internal ticket created: GR-52515

from graal.

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.