RE: jpackage Linux rpath [EXTERNAL]

2020-03-05 Thread Auclair, Andrew
- From: Alexey Semenyuk Sent: Thursday, March 5, 2020 2:03 PM To: Auclair, Andrew ; [email protected] Subject: Re: jpackage Linux rpath [EXTERNAL] Andrew, Thank you for sharing! As far as I can see you use jpackage to create application image. I think your solution is optimal for

Re: jpackage Linux rpath [EXTERNAL]

2020-03-05 Thread Alexey Semenyuk
executable "patchelf" args = ["--force-rpath", "--set-rpath", "\$ORIGIN", "../build/install/Example "] } } Thanks Again, Andrew -Original Message- From: Alexey Semenyuk Sent: Thursday, March 5, 2020 1:51 PM To: Auclair, And

RE: jpackage Linux rpath [EXTERNAL]

2020-03-05 Thread Auclair, Andrew
" Example.jar"] } if (OperatingSystem.current().isLinux()) { exec { executable "patchelf" args = ["--force-rpath", "--set-rpath", "\$ORIGIN", "../build/install/Example "] } } Thanks Again, Andrew -Original Message-

Re: jpackage Linux rpath

2020-03-05 Thread Alexey Semenyuk
Hi Andrew, jpackage is providing similar functionality as javapackager, so I think you need to keep using patchelf with jpackage as you used it with javapackager. I assume you use jpackage in two phases. The first phase creates application image and you use patchelf on launchers created by jpa

jpackage Linux rpath

2020-03-05 Thread Auclair, Andrew
Hi, We are in the process of upgrading to jpackage in Java 14 from javapackager in Java 10. So far the transition has been smooth and we're really liking jpackage. One question has come up regarding our Linux install. Currently we are using Patchelf on CentOS to set an rpath for the executables