Re: users Digest 7 Jul 2021 19:24:25 -0000 Issue 1288

2021-07-08 Thread Bradley Willcott

Chris,
As you say "(rightly or wrongly)" - though a compiled 'exe' is just as 
risky.  Java cannot be blamed for that sort of thing.
However, I have not dealt with paranoid end-users so I'll just leave it 
with you there.


When you do get your answers, I would be interested in seeing them 
also.  That is, if they aren't already posted to the list.


Regards,
Brad.

On 8/7/21 6:43 pm, Chris Olsen wrote:

Bradley and All --

   Thank you for the lengthy response and pom.  I would like to briefly respond 
to your comment below:

---
Separately, I don't see any issue with an end-user having to install a
version of the JRE to run Java applications.  In Windows, it is quite
easy, isn't it?
---

   My own efforts at freeware target statistics teachers.  Many school districts (rightly 
or wrongly) have the idea that Java is a huge security risk, and any Java program is 
immediately suspect.  Also, many districts do not have the expertise to install FX.  
Thus, bundling an app with a JRE slips in "under the radar."  (Teachers 
typically do not have admin privileges on their classroom computers, and I typically 
offer the source code for inspection; however, many Districts are bereft of expertise in 
that area also.)

   -- Chris




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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: users Digest 7 Jul 2021 19:24:25 -0000 Issue 1288

2021-07-08 Thread Chris Olsen
Bradley and All --

  Thank you for the lengthy response and pom.  I would like to briefly respond 
to your comment below:

---
Separately, I don't see any issue with an end-user having to install a 
version of the JRE to run Java applications.  In Windows, it is quite 
easy, isn't it?
---

  My own efforts at freeware target statistics teachers.  Many school districts 
(rightly or wrongly) have the idea that Java is a huge security risk, and any 
Java program is immediately suspect.  Also, many districts do not have the 
expertise to install FX.  Thus, bundling an app with a JRE slips in "under the 
radar."  (Teachers typically do not have admin privileges on their classroom 
computers, and I typically offer the source code for inspection; however, many 
Districts are bereft of expertise in that area also.)

  -- Chris


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: users Digest 7 Jul 2021 19:24:25 -0000 Issue 1288

2021-07-08 Thread Bradley Willcott

Hi Chris.
Firstly, I have no experience in developing Netbeans Platform projects.  
However, I have developed many others, all Open Source 
https://github.com/bewillcott .
As a suggestion to help with the deployment side, I wish to offer the 
following ideas for the Maven POM:




   ...

    
com.yourproject.Main
...




release-profile



org.codehaus.mojo
exec-maven-plugin


Zip Binary Jar and libs
verify

exec


zip

${project.build.directory}

false

true

-r

${project.build.finalName}.zip

${project.build.finalName}.jar
libs






   ...





...







src/main/resources



**/*




...





org.apache.maven.plugins
maven-dependency-plugin


copy-dependencies
prepare-package

copy-dependencies


runtime
test

${project.build.directory}/libs






org.apache.maven.plugins
maven-jar-plugin



true
libs/
${jar.manifest.mainClass}

true

true





...






org.codehaus.mojo
exec-maven-plugin
3.0.0


maven-dependency-plugin
3.1.2


maven-jar-plugin
3.2.0


...




...
 
    



What you will end-up with, amongst other files, is a Zip file with the 
program jar and a 'libs' directory containing all of the project's 
dependencies.  To install, just unpack the zip file into an application 
directory, and run the application from this directory ("java -jar 
.jar").  It will automatically find all of its dependencies 
in the 'lib' directory.


Separately, I don't see any issue with an end-user having to install a 
version of the JRE to run Java applications.  In Windows, it is quite 
easy, isn't it?


I know that this does not properly answer your questions, but I hope it 
helps.


Regards,
Brad.

On 8/7/21 3:24 am, Chris Marusich  wrote:

Subject:
NetBeans Platform "Golden Path"
From:
Chris Marusich 
Date:
8/7/21, 3:24 am

To:
users@netbeans.apache.org


Hi,

What's the current "best practice" or "golden path" for building and
distributing a NetBeans Platform application and managing its
dependencies (e.g., from Maven central)?  That's a big general question,
so I'll ask some specifics:

- Should I ever try to use JPMS modules when building a NetBeans
Platform application?  I've found that in my projects (which are
NetBeans Maven-based projects, not NetBeans Platform projects), when I
use JPMS modules, it can cause problems for NetBeans [1], so I wonder if
it's really wise to even try mixing JPMS modules with NetBeans projects
at this time, let alone NetBeans Platform projects.

- Should I ever try to make a Maven-based NetBeans Platform application?
I see there are Maven templates in NetBeans that offer to create a
Maven-based NetBeans Platform project.  However, all the examples online
and in books that I've seen so far do NOT use Maven.  In spite of this,
recent emails on this list have