Derik,

I use Launch4J, then innoSetup to create an installer. Tricky part is the 
innoSetup for including the JRE. I can share mine, if that would help.

 

Ed

 

 

 

 

 

From: Derik Devecchio <ddevecc...@celestron.com> 
Sent: Monday, September 30, 2019 6:06 PM
To: Emilian Bold <emilian.b...@gmail.com>
Cc: users@netbeans.apache.org
Subject: Re: Java 8 still on Java.com

 

Emillian,

 

Thanks for getting back to me.    I am not trying to re-invent “write once run 
anywhere”.    I accept that everything is going to need an installer now.

The question is, how do I get from “Clean and Build” to  .EXE file that 
includes a JRE?   

 

 

You said "For Windows/macOS you probably can use something cross platform (see

the NetBeans installer), “  

 

Do you mean the installer for Netbeans?  Or do you mean installers for OSX and 
Windows?

 

but you will run into the problem of digitally signing your app

 

That is a good point.  I had not thought of that.

 

 

—

derik

 

 

 

 

 





On Sep 30, 2019, at 12:20 PM, Emilian Bold <emilian.b...@gmail.com 
<mailto:emilian.b...@gmail.com> > wrote:

 

Well, there is a public facing Java distribution such as AdoptOpenJDK
and many Linux distros provide their own (see 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jchoice.eu&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=sRQt0MZb0dUUHASasyKDy5c_gUle6iLsp6tUkf-OpCc&e=
 ).
So, at least on Linux, you will have some form of Java in their
repositories. Although even there there's nothing stopping you to ship
your own runtime (as part of something like 
https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__snapcraft.io&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=tFOZsRRrzPuhzZW48XWAsduCgxI_R1hkW0Uot_qWGBU&e=
 or manually).

But Java is no longer something users install / update.

Supporting all the Unix-like OSes seems like a non-trivial job in
itself. The NetBeans installer is just a 
https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__linux-2Dx64.sh&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=XwiporXmMd6KO0T77eE-8ebQmMoQ9ogI8_JwrnsYZ7M&e=
 file, not a
rpm/deb.

For Windows/macOS you probably can use something cross platform (see
the NetBeans installer), but you will run into the problem of
digitally signing your app. For that I don't know of a cross platform
solution.

So, for example, although I build CoolBeans on a Linux build server, I
still have to digitally sign the installer on a Mac and on a Windows
machine.

--emi

On Mon, Sep 30, 2019 at 9:15 PM Derik Devecchio
<ddevecc...@celestron.com <mailto:ddevecc...@celestron.com> > wrote:








On Sep 30, 2019, at 9:55 AM, Emilian Bold 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4&e=>
 wrote:

Java is no longer an user-facing product, it's middleware.


Okay, that sounds like an improvement from where I am standing, but…  Can 
Netbeans help me with that now?

The last time I looked into bundling the JRE with my program, I think it was in 
the early release days of Java9 (Netbeans 8.2 was still the IDE of choice).     
You could specify such a build, but it required linking the IDE to 3rd party 
software.   Also, at the time, it required that you have a development station 
for each OS.   You couldn’t make Windows apps on a Mac and visa versa, to say 
nothing of the dozen or so flavors of Linux out there.   To make matters worse, 
at the time, the required third party software was different for each OS.   
There were many competing options for each OS, each with dozens different 
options that need to be (a) learned and (b) configured correctly for each of 
your development stations.   Finally, creating the installer was a multi-step 
process for each OS.   As I said, this was shortly after the release of Java9 - 
so it was years ago.


Has the state of the art advanced since that time?    I am thinking maybe a 
plugin for Netbeans that allows me to tick off the OS’s I want to support with 
a menu option to build all the installers when I am ready to distribute.   
Maybe I need a separate installer plugin for each OS that includes binaries of 
the JRE for that OS?

And what about the Unix-like OS’s?   I just assumed that if you used unix at 
all, then you were smart enough to install the JRE.  But if there /is/ no 
public facing JRE, and I need to provide that for them, then wouldn’t I need to 
provide a separate installer for each and every Unix-like OS on the market?   
There must be close to a dozen by now.   And if I still need a separate 
development station for each OS, then it is going to be impractical.








On Sep 30, 2019, at 9:55 AM, Emilian Bold 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__emilian.bold-40gmail.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=PeJWpW-WawklL6gXN-IwSdeL3lDovxNlGU0b7tzjPV4&e=>
 wrote:

Java is no longer an user-facing product, it's middleware.

You are expected to provide Java bundled with your application in the future.

Users will not have any Java already available nor will they download
any new Java.

--emi

On Mon, Sep 30, 2019 at 7:39 PM Derik Devecchio
<ddevecc...@celestron.com <mailto:ddevecc...@celestron.com> > wrote:




I know that the Netbeans’s forum doesn’t maintain 
https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=.
   But I don’t know anyone else to ask off hand.

I went to https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=
 to find out the “latest public stable release”.   I was expecting Java 9 point 
something.    But I was hoping for 10, 11 or maybe 12.   Low and behold it is 
still on Java8 u 221?


Isn’t Java 9 stable enough for public?   As a person that writes software for 
the customers of my company, I am loath to write code using a version of Java 
that won’t be compatible with what most people already have installed on their 
machine.     And if they don’t have any version of Java installed on their 
computer, which is increasingly the case,  then my code should be compatible 
with the JRE they download from the most obvious place, 
https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=.

I was just wondering if maybe 
https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__Java.com&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=mt2t1WwNtJBjlp5LQGfiEiv6qdbpWR_ERwkbetcx0U8&s=GfCmY_DSYBKhSppRNkyy0fWKCU3mqezARULiuYf-zbg&e=
 wasn’t the right place anymore.  It doesn’t seem like the site is stagnate.   
8u221 was released just a few months ago.  But why 8?     If anyone has a clue, 
I would appreciate some enlightenment.


—
derik

P.S.   Great work bringing such a huge project over to the Apache framework.   
I thought it would be a lot easier than it is.  I have watched some fo the 
videos of Gertjan discussing the mind bogglingly large amount of tedious work 
involved.   I applaud your efforts.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
<mailto:users-unsubscr...@netbeans.apache.org> 
For additional commands, e-mail: users-h...@netbeans.apache.org 
<mailto:users-h...@netbeans.apache.org> 

For further information about the NetBeans mailing lists, visit:
https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_NETBEANS_Mailing-2Blists
 
<https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_NETBEANS_Mailing-2Blists&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=H9PLaYg0t2kVQOAce-9yC_ZLaixGSgkEg-DbhEg4tsc&e=>
 
&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=LEbKaWj9ZrFRBadYtwZVnHfoaHpGoEmzs1DrtRBDEg8&m=Yb4wDmGBHBYqGxz0n8bxogY7aRIQV-smcsBYgznELLY&s=H9PLaYg0t2kVQOAce-9yC_ZLaixGSgkEg-DbhEg4tsc&e=

 

Reply via email to