Replies: 4 comments 2 replies
-
I'm not a jpackage expert, but from ChatGPT 4o researcher model: Thanks for sharing your script and detailed setup. The error you’re encountering:
Translated to English means:
This issue relates to JEP 493 (Preview Feature in JDK 24), which introduces classfile API changes and includes major internal tooling shifts, including changes in how jpackage and related tooling interact with symbol files like Why OpenJDK 21 Works but Temurin 24 Fails
Possible Causes Suggested Fixes or Workarounds Option 1: Reinstall or Validate ct.sym Reinstall Temurin 24 cleanly: sudo apt remove temurin-24-jdk Then check: sha256sum /usr/lib/jvm/temurin-24-jdk-amd64/lib/ct.sym Compare the result with a known good copy, or from another system. Option 2: Use JDK 21 for Packaging Since JDK 21 works fine and jpackage bundles a custom runtime anyway, it’s safe to use it for creating the .deb: ./jpkg --java 21 This avoids needing to troubleshoot JDK 24 internals for now. Option 3: Use --runtime-image Instead (Optional) Create a runtime with jlink, then pass it via: jpackage --runtime-image /path/to/custom/runtime ... This may bypass some of the internal JDK 24 checks. ⸻ 💡 Recommendations Let me know if you want help automating fallback logic in your script or generating a patched version of ct.sym. |
Beta Was this translation helpful? Give feedback.
-
@kurt-2 Does this reproduce when you don't use the |
Beta Was this translation helpful? Give feedback.
-
just downloaded and tried with jdk-24.0.2+12 (https://adoptium.net/de/download?link=https%3A%2F%2Fgithub.com%2Fadoptium%2Ftemurin24-binaries%2Freleases%2Fdownload%2Fjdk-24.0.2%252B12%2FOpenJDK24U-jdk_x64_linux_hotspot_24.0.2_12.tar.gz&vendor=Adoptium). this is also the installed .deb version. it worked as hoped and expected. so it is a .deb-packaging problem ? |
Beta Was this translation helpful? Give feedback.
-
I update via apt from https://packages.adoptium.net/artifactory/deb. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some time (years) ago I used jpackage to create a .deb to install a little program of my own.
At that time I used openjdk 11 or 17 for that. In the meanwhile I installed temurin 24
according to the information on the homepage and it got updated by apt to 24.0.2.
I did not use jpackage since then anymore.
Now I get an error using jpackage from temurin 24:
what means 'Error: ... has been changed'.
The sha256sum of the above file is:
The temurin-installation gets updated by the normal update-process from Ubuntu (jammy, 22.04.5).
The used/installed temurin is:
Using openjdk 21 the .deb gets created without errors.
I attached the script (jpkg) I use to create the .deb.
So hopefully someone has an idea if this is a bug or maybe just a new parameter missing.
Thanks in advance.
jpkg.txt
Beta Was this translation helpful? Give feedback.
All reactions