Re: Can we use JavaPackager and a get full JRE?

2015-08-10 Thread Michael Hall
On Aug 9, 2015, at 11:14 PM, Danno Ferrin danno.fer...@oracle.com wrote: It's not easy, since this is functionality that is deliberately removed in the name of security. You could copy the .../bin/java file somewhere else prior to packaging and then copy it back into place after

Re: Can we use JavaPackager and a get full JRE?

2015-08-10 Thread Michael Hall
For now, OS X only, couldn’t you require your users to have the common, ‘browser’, jre installed? Or, thinking about I guess you could require the jdk to be installed. Then normal Runtime would work, OS X I’m pretty sure and maybe cross platform. For Java 9 I thought the jdk/jre separation

Re: Can we use JavaPackager and a get full JRE?

2015-08-09 Thread Jeff Martin
You can add a post-image script to your javapackager build to manually add the java.exe into your application. If you search the output from the javapackager for “post-image” I think it will tell you what file to create and where to put it. Here is a post-image file that I use to move java.exe

Re: Can we use JavaPackager and a get full JRE?

2015-08-09 Thread Danno Ferrin
On Aug 8, 2015, at 5:16 PM, Scott Palmer swpal...@gmail.com wrote: I’m using the JavaFX gradle plugin to build a very simple application with the new java packager and I’ve noticed a problem with the embedded JRE, at least on OS X. Specifically, the ‘bin’ folder is missing from the

Re: Can we use JavaPackager and a get full JRE?

2015-08-09 Thread Mike Hearn
UpdateFX has code that can restart a javapackager packaged process, look here: https://github.com/vinumeris/updatefx/blob/master/api/src/main/java/com/vinumeris/updatefx/UpdateFX.java#L60 It's not beautiful but it works. You could extract the code and use it in your app: UpdateFX is Apache