https://www.youtube.com/watch?v=eSJTTHypDEw
https://twitter.com/netbeans/status/1247077159824433153 Gj On Mon, Apr 6, 2020 at 9:47 AM Geertjan Wielenga <[email protected]> wrote: > Wow, this is great work Ernie. Thank you. I will be making a YouTube clip > of this. > > Thanks for bringing up the question, Ken. > > Indeed, it would be great if the javafx.mainClass property was included in > the POM by default. > > Gj > > On Mon, Apr 6, 2020 at 6:51 AM Ernie Rael <[email protected]> wrote: > >> I later discovered that after "Add Custom" action for jlink. I got this >> in nbactions.xml >> >> | <action> >> | <actionName>CUSTOM-jlink</actionName> >> | <displayName>jlink</displayName> >> | <goals> >> | <goal>clean</goal> >> | <goal>javafx:jlink</goal> >> | </goals> >> | </action> >> >> -ernie >> >> On 4/5/2020 4:30 PM, Ernie Rael wrote: >> > Hi Ken, >> > >> > I guess the entry in nbactions is wishful thinking by the openjfx and >> > Gluon guys. They proposed a similar nbactions at StackOverflow >> > >> > It turns out you can run jlink from the IDE. >> > >> > Using a project created with NB-12beta2 (that probably doesn't >> > matter), I'm using Simple JavaFX archetype project. >> > >> > 1. Click on the project's top level node in the Projects window, in the >> > Navigator you will see the project's maven goals. >> > 2. But first edit pom.xml and add the property, using your main class >> > name >> > <javafx.mainClass>com.raelity.play.xs13.App</javafx.mainClass> >> > 3. Now in the Navigator, the context menu for "javafx link", do >> > "Execute Goal" >> > 4. cd <projdir>/target/image/bin >> > 5. Using your main class name do >> > ./java com.raelity.play.xs13.App >> > >> > That run's the program (at least this afternoon). >> > >> > An experiment, at "TheProject > properties > Actions" I did "Add >> > Custom". In the little dialog I added "Action Name:" "jlink". Then I >> > gave that "Execute Goals" "clean javafx:jlink". Now in the context >> > menu for the project there's "Run Maven > jlink" >> > >> > I'd like to suggest the the pom.xml property be added by the Archetype >> > automatically when the project is created. Comment? >> > >> > At https://github.com/openjfx/javafx-maven-plugin there's a section >> > named "javafx:jlink options". And the context menu in the navigator >> > has "Show Documentation..." (it executes directly, the '...' is >> > misleading) which is cool, it has some good info. >> > >> > In the project directory, after you add the property to the pom, from >> > the command line you can do something like >> > >> > 1409 JAVA_HOME=c:/f/j/jdk/jdk-11.0.5 mvn clean javafx:jlink >> > 1410 cd target/image/bin/ >> > 1411 ./java com.raelity.play.xs13.App >> > >> > -ernie >> > >> > On 4/5/2020 8:25 AM, Kenneth Fogel wrote: >> >> >> >> As suggested by Geertjan here is my question in the subject line “how >> >> to use jlink in nbactionx.xml" >> >> >> >> Jaraslav’s suggestions ‘It might appear in "Project popup/Run >> >> Maven/JLink", if not try "Project popup/Properties/Actions” category’ >> >> does not reveal jlink either. >> >> >> >> I just thought it might be a good way to see jlink in action but it >> >> will no impact on my course. >> >> >> >> >> >> >> >> */Ken Fogel/* >> >> Faculty >> >> >> >> email: [email protected] <mailto:[email protected]> >> >> phone: (514) 931-8731 local 4799 >> >> >> >> Dawson College, 3040 Sherbrooke St. WWestmount, Quebec, H3Z 1A4, Canada >> >> >> >> facebook icon <https://www.facebook.com/ken.fogel>twitter icon >> >> <https://twitter.com/omniprof>youtube icon >> >> <https://www.youtube.com/kenfogel>linkedin icon >> >> <https://www.linkedin.com/in/kenfogel/>instagram icon >> >> <https://www.instagram.com/omniprof/> >> >> >> >> >> >> >> >> cid:16cd4bdce7eaf8d708 <https://www.dawsoncollege.qc.ca/> >> >> >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > For further information about the NetBeans mailing lists, visit: >> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> > >> > >> > >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >> >> >> >>
