On 9/6/2020 4:53 AM, HRH wrote:
**
Is jlink of any use here? The projects created with "NewProject >
SimpleJavaFX > ..." have a jlink action
**
Hi Ernie,
I noticed the "NewProject> FXML JavaFX...>", also have jlink action
defined in the nbactions.xml as follow:
The items found in nbactions.xml are not generally used as part of the
build. They are associated with IDE action, like the run/debug buttons;
or speicific actions not part of the maven phases. Tye
ProjectWin>ProjNode>RunMaven And you can also take a look at
ProjectWin>ProjNode>Properties>Actions; the stuff in bold under actions
is usually from the nbactions.xml.
Anyway, for jlink
1. edit pom.xml and add the property, using your main class name
<javafx.mainClass>org.mystuff.App</javafx.mainClass>
2. ProjWin>MyProj>RunMaven>jlink
3. cd <projdir>/target/image/bin
4. ./java org.mystuff.App
This should run your app. You can take a look at the docs for the
javafx-maven-plugin for more info.
-ernie
<action>
<actionName>CUSTOM-jlink</actionName>
<displayName>jlink</displayName>
<goals>
<goal>clean</goal>
<!-- compile not needed with javafx-maven-plugin
v0.0.5 -->
<goal>compile</goal>
<goal>javafx:jlink</goal>
</goals>
</action>
In addition, it has jar packaging clause:
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>clean</goal>
<goal>javafx:run</goal>
</goals>
</action>
However, I am not sure, if these goals and actions are actually being
processed during the build since I don't see any jar file under
target/classes tree structure. Any idea?
Thanks
On Friday, September 4, 2020, 8:08:24 PM GMT+4:30, HRH
<[email protected]> wrote:
Thanks, Ernie, I recall someone on Stackoverflow had mentioned it
while back. I will look into it.
On Friday, September 4, 2020, 7:45:30 PM GMT+4:30, Ernie Rael
<[email protected]> wrote:
On 9/3/2020 11:04 AM, HRH wrote:
> Hi,
>
> Does anyone know, if Maven has a plugin deployment for JavaFX
> application that will render a self-contained installable package
Is jlink of any use here? The projects created with "NewProject >
SimpleJavaFX > ..." have a jlink action.
-ernie
> for a given (or all) platform(s) (i.e. Windows - 64 bit, Linux or Mac
> OS)? I rather use a plugin and have the IDE do most of the work than
> using the Java Jpackage tool and do all the work myself.
>
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
<mailto:[email protected]>
For additional commands, e-mail: [email protected]
<mailto:[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