[EXTERNAL] Re: jpackage on MacOS - ./Contents/Contents/app/myapp.cfg file not found

Bruno Borges Bruno.Borges at microsoft.com
Wed Jul 21 23:01:45 UTC 2021


Thanks Andy.

The issue regarding .cfg file not being found is indeed fixed in 17, and solves this particular problem I found.

From: core-libs-dev <core-libs-dev-retn at openjdk.java.net> on behalf of Andy Herrick <andy.herrick at oracle.com>
Date: Wednesday, July 21, 2021 at 1:57 PM
To: core-libs-dev at openjdk.java.net <core-libs-dev at openjdk.java.net>
Subject: [EXTERNAL] Re: jpackage on MacOS - ./Contents/Contents/app/myapp.cfg file not found
Looks like an instance of: JDK-8260335
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.openjdk.java.net%2Fbrowse%2FJDK-8260335&data=04%7C01%7Cbruno.borges%40microsoft.com%7C9b29c0dfcd6d45f58cc908d94c8a3229%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637624978703359720%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Ifc5MP7qZj58mnEm5QjRarJqVWPKC%2B3%2BBhOuJLuYV7I%3D&reserved=0> : [macos] Running app
using relative path causes problems (fixed in jdk17 build b09)

you can try builds from https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjdk.java.net%2F17%2F&data=04%7C01%7Cbruno.borges%40microsoft.com%7C9b29c0dfcd6d45f58cc908d94c8a3229%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637624978703359720%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pGwCWe9IBiVKhZCVMpFo1OZJLSyFVfQJODpKQ%2B6fby8%3D&reserved=0 to confirm fix.

/Andy

On 7/21/2021 4:46 PM, Bruno Borges wrote:
> Hi all,
>
> Been trying to use Java 16.0.1 to produce a PKG for the fx2048 [1] game, and the generated app-image comes with a binary launcher that tries to load the .cfg file from the wrong directory.
>
> Anyone seen this problem?
>
> fx2048.app/Contents/MacOS  master -> origin/master ✔                                                                                                                                      1h59m  java:16.0.1
> $ tree ../../../ -L 4
> ../../../
> └── fx2048.app
>      └── Contents
>          ├── Info.plist
>          ├── MacOS
>          │   └── fx2048
>          ├── PkgInfo
>          ├── Resources
>          │   └── fx2048.icns
>          ├── app
>          │   └── fx2048.cfg
>          └── runtime
>              └── Contents
>
> 7 directories, 5 files
>
> $ ./fx2048
> Error opening "/Users/bruno/myprojects/fx2048/build/installers/fx2048.app/Contents/Contents/app/fx2048.cfg" file: No such file or directory
>
> [1] https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgithub.com%2Fbrunoborges%2Ffx2048&data=04%7C01%7Cbruno.borges%40microsoft.com%7C9b29c0dfcd6d45f58cc908d94c8a3229%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637624978703359720%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=t8txGpyO7cA9TuIY%2FcsPt4zXN2WmRrsTwJD7rQaC4%2F4%3D&reserved=0


More information about the core-libs-dev mailing list