Re: slightly ot: java9 runtime images

2015-05-15 Thread Werner Lehmann
Hi Tom, could you do this with File.deleteOnExit? Question is, can it delete jars on its own classpath... Werner On 14.05.2015 08:22, Tom Eugelink wrote: Unfortunately you cannot have the spawned JVM cleanup after itself, otherwise I could stop the initial JVM after it spawned the other.

Re: slightly ot: java9 runtime images

2015-05-15 Thread Tom Eugelink
It tried every angle, including tempfile. Problem is that that the initial JVM creates the file, so it can consider it a temp file, for the spawned JVM it is an existing file. Tom On 15-5-2015 12:28, Werner Lehmann wrote: Hi Tom, could you do this with File.deleteOnExit? Question is, can

Re: slightly ot: java9 runtime images

2015-05-14 Thread Tom Eugelink
Correct. I keep comparing to my appjar tool which, as said before, is a single jar containing all the other jars unmodified. When started through java -jar, it does the following: - Unpack itself to a temp directory. - Spawn a new JVM with a classpath referring to all the unpacked stuff. - The

Re: slightly ot: java9 runtime images

2015-05-13 Thread Tom Eugelink
On 7-5-2015 15:52, Danno Ferrin wrote: It would be a major improvement (not only for JavaFX applications, but also standalone servers) if it would become possible to create a truly single distributable, without having to repack the jars. So either by automatic unpacking to a tmp and setting

Re: slightly ot: java9 runtime images

2015-05-13 Thread Benjamin Gudehus
Hi Tom! I would really like to be able to generate such a standalone exe. With Danno's javafx-gradle Gradle plugin and with the java package API (com.oracle.tools.packager.Bundler from Java 8) it is possible to generate a standalone exe without installer (the bundler name is Windows Application

Re: slightly ot: java9 runtime images

2015-05-13 Thread Danno Ferrin
I think what Tom was alluding to was an all in one executable that contains all the data in one file. What the Windows Application Image creates is a directory that contains all the jars, the JRE, and the executable that launches the whole setup. If an all in one executable is something you

Re: slightly ot: java9 runtime images

2015-05-07 Thread Tom Schindl
On 07.05.15 14:27, Tom Eugelink wrote: On 7-5-2015 02:15, Danno Ferrin wrote: You can already do some of that today with Java 8 and the Java Packager. You can create a file tree that can be zipped up that includes the runtime and all of the application files, as well as native installers for

Re: slightly ot: java9 runtime images

2015-05-07 Thread Tom Schindl
[...] In 8u40 we added an option to install your application as service or daemon, so you can use the java packager to install your microsoervices. [offtopic] Interesting where is this documented - google did not show up any results? Do I get callbacks in my Java code to react on a

Re: slightly ot: java9 runtime images

2015-05-07 Thread Danno Ferrin
On May 7, 2015, at 6:27 AM, Tom Eugelink t...@tbee.org wrote: On 7-5-2015 02:15, Danno Ferrin wrote: You can already do some of that today with Java 8 and the Java Packager. You can create a file tree that can be zipped up that includes the runtime and all of the application files, as

Re: slightly ot: java9 runtime images

2015-05-07 Thread Tom Eugelink
On 7-5-2015 15:52, Danno Ferrin wrote: I don’t know where you got your information, it has never been the case for as long as i’ve used it and worked on it before my employ at Oracle that you have to rely on a single jar for Java Packager. Repacking jars is completely unneeded and the Java

Re: slightly ot: java9 runtime images

2015-05-07 Thread Tom Eugelink
On 7-5-2015 16:44, Mike Hearn wrote: Do you actually need JAR signatures anyway? The JVM is bundled, it's not like you have to pass some system security policy beyond Gatekeeper/Windows code signing. Well, I remember the official Sun mail.jar being signed and causing headaches if it was

Re: slightly ot: java9 runtime images

2015-05-07 Thread Mike Hearn
Do you actually need JAR signatures anyway? The JVM is bundled, it's not like you have to pass some system security policy beyond Gatekeeper/Windows code signing.

Re: slightly ot: java9 runtime images

2015-05-07 Thread Danno Ferrin
I looked at the man pages, and it’s not there. That is strange because I remember working with the docs people to get them the info they needed. The best docs are from my JavaOne presentation:

Re: slightly ot: java9 runtime images

2015-05-07 Thread Tom Eugelink
On 7-5-2015 02:15, Danno Ferrin wrote: You can already do some of that today with Java 8 and the Java Packager. You can create a file tree that can be zipped up that includes the runtime and all of the application files, as well as native installers for windows, linux, and mac that will

Re: slightly ot: java9 runtime images

2015-05-06 Thread Danno Ferrin
On May 6, 2015, at 5:39 PM, Michał Zegan webczat_...@poczta.onet.pl wrote: Hello. Sorry for asking it here, but I have too many lists I subscribed to and I don't want to join a new one just to ask this one question: I heard that java9 will (or might) make it possible to create a runtime