java


How to package non-JavaFX application as Native installer with Maven


I'm trying to package a Java application with maven as a Native installer. So far I have success with doing this with jfx:native for a GUI app. However this time I am trying to build a CLI application with installer.
Here's my code:
public class HelloWorld {
public static void main(String... args){
Cli.CliBuilder<Runnable> builder = Cli.<Runnable>builder("helloworld")
.withDescription("the hello toolbox (beta)")
.withDefaultCommand(Help.class)
.withCommand(Help.class);
Cli<Runnable> hwParser = builder.build();
hwParser.parse(args).run();
}
}
Now doing the same with this app, running jfx:native does make a installer package, the problem is when the output exe is installed and executed, nothing happens, while running jfx:run build does output something in the console. What could be wrong in my build?

Related Links

How to center align everything in JPanels having GridLayout
Showing Morning, afternoon, evening, night message based on Time in java
instance method reference. no suitable method found for
Tomcat 7.0 HTTP post request utf-8 issues with windows server 2008 R2
Is there a BiMap implementation with predictable iteration ordering (insertion order)?
Eclipse says “Constructor is undefined”
AlarmManager can't be cancelled in the Activity
Login to PHP based website via Java Application
JButton does not return the right text value
Regex to extract numbers and group them with thousands separator
Properly use the RelationshipEntity
Setting Cursor for App Engine Datastore using Java
Intermittent error org.hibernate.PersistentObjectException: detached entity passed to persist
Localizing a legacy product?
Java Set - how to sort based on a list of names
Android : Entries cannot be protected with passwords

Categories

HOME
vim
hook
reflection
minimum-spanning-tree
comparison
rsyslog
jsp-tags
spring-cloud-stream
twitter-bootstrap-4
v8
gps
echarts
directx
synchronization
adfs
awesome-wm
python-unittest
kibana-4
reveal.js
nstableview
timeout
phaser
django-simple-history
workload-scheduler
windows-7-x64
evopdf
swingx
grails3
opencover
web-sql
sox
restful-authentication
vlsi
kannel
linkerd
maquette
publish
file-rename
ioio
contact-form
webtest
xmlreader
android-kernel
normal-distribution
swisscomdev
x11-forwarding
sas-visual-analytics
mesos-chronos
hp-ux
g-code
ibpy
nomethoderror
executenonquery
cubic-spline
auto-update
boost-multi-index
drupal-6
google-perftools
gcsfuse
hittest
specrun
ubuntu-10.04
sdf
two-factor-authentication
jfugue
prerequisites
jms2
ionic
tableau-online
mono-embedding
ami
angular-local-storage
lustre
facebook-graph-api-v2.4
offloading
html-helper
bitcoinj
onactivityresult
sgen
contenttype
android-2.2-froyo
srs
prettify
aqtime
django-nonrel
yui-compressor
enterprisedb
angularjs-controller
browser-detection
mt
coderush
frameset
venn-diagram
viewswitcher
regsvr32
uiviewanimation-curve
asyncfileupload
hgsubversion
fireworks
gwt-ext
qt-jambi
tomcat-valve
xtype
calling-convention
actionview
site.master
createwindow
.nettiers
jquery-ui-droppable
asp.net-profiles
backcolor

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App