-
Hi, I’m using JustJ JRE21 in my RCP app, which is built with tycho for Windows and Linux environment. On Windows it works fine. On Linux I get on the app start: “JVM terminated. Exit code=13”, probably due to the missing “x” permission on the file “plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_21.0.4.v20240802-1551/jre/bin/java”. If I modify permissions manually (chmod u+x), the app starts properly. In the “p2.inf” file of the corresponding JRE plugin I found the following:
So, actually all files under “jre/bin/” should have the execute permission, right? What goes wrong? My “.target” file contains following:
The root "pom.xml":
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I wonder how you are packaging up and distributing the product? These things also build in include JustJ, so you can compere the permissions you see on these:
I've never heard of someone having the problem you describe which makes me suspicions about how you package up the result perhaps losing the linux permissions... I also assume you are building on Linux, not on Windows (because of course on Windows you cannot set these bits). |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply Ed! I tested apps you linked: both works fine and all permissions are set properly. Meanwhile I think, this is not a JustJ issue, but a Tycho issue. There is something what I'm missing in my build. Btw. the launcher file for the Linux distribution doesn't have the execute permission as well. I run the build on my Windows laptop just with For the packaging of the product I'm just using the following tycho plugins in the product's pom.xml:
I think, I have to investigate, what is missing in my build for setting chmod on all executable files. |
Beta Was this translation helpful? Give feedback.
-
Ok, that sounds plausible. My expectation was different because I previously (Oxygen) built directly from the product editor for both platforms: Windows and Linux and it worked great. Recently we updated to the latest Eclipse platform (2024_06) where building from the product editor is no longer supported and I had to switch it to Maven/Tycho. But, anyway, I will try to run the build process on a Linux machine, that should solve the problem. Thanks for your support, I really appreciate it. |
Beta Was this translation helpful? Give feedback.
The touchpoint to set the execute flag is a no-op on Windows so you cannot build a Linux or macOS product on Windows. So save the investigation time and instead get the same build working on Linux. Good luck. I think you have everything correctly in place.