-
Bug
-
Resolution: Fixed
-
P4
-
17
-
b08
-
linux_ubuntu
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8329228 | 17.0.12-oracle | Renjith Kannath Pariyangad | P4 | Resolved | Fixed | b02 |
JDK-8328155 | 17.0.12 | Sergey Nazarkin | P4 | Resolved | Fixed | b01 |
JDK-8329731 | 11.0.24 | Sergey Nazarkin | P4 | Resolved | Fixed | b01 |
```
$ jpackage --type app-image --name HelloWorld --input out/artifacts/jpackage_test_jar --main-jar jpackage-test.jar --dest output
```
Everything works correctly, and launching the generated app prints "Hello world":
```
$ output/HelloWorld/bin/HelloWorld
Hello world!
```
However, if the destination directory contains "bin" (even as a nested subfolder), there are issues. Here's the jextract command line:
```
$ jpackage --type app-image --name HelloWorld --input out/artifacts/jpackage_test_jar --main-jar jpackage-test.jar --dest bin
```
(the only thihng that changed is the --dest parameter)
And here's what I get:
```
$ bin/HelloWorld/bin/HelloWorld
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
```
I use Ubuntu 20.04. A colleague of mine using MacOS does not seem to have the same issue, so it seems to be system specific.
I'm using the latest jpackage from jdk/jdk.
See:
https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-June/079041.html
- backported by
-
JDK-8328155 GetJREPath() JLI function fails to locate libjava.so if not standard Java launcher is used
- Resolved
-
JDK-8329228 GetJREPath() JLI function fails to locate libjava.so if not standard Java launcher is used
- Resolved
-
JDK-8329731 GetJREPath() JLI function fails to locate libjava.so if not standard Java launcher is used
- Resolved
- duplicates
-
JDK-8219962 java -version cannot find libjava when java in bin/bin directory
- Closed
-
JDK-8183898 Cannot name the JDK home directory as "bin".
- Closed
- links to
-
Commit openjdk/jdk11u-dev/2e46aad2
-
Commit openjdk/jdk17u-dev/c9b0307a
-
Commit openjdk/jdk/984003d5
-
Review openjdk/jdk11u-dev/2578
-
Review openjdk/jdk17u-dev/2257
-
Review openjdk/jdk/4534