java - The executable generated by install4j doesnt start -


i'm evaluating install4j since want generate executable our windows-users. run our app directly in eclipse, or using bash scripts. have 1 big jar whole framework our applications, , dependency jars. on deployment set class path 1 shellscript , start individual applications using other shellscripts.

this procedure work on both linux, mac , windows.

now tried installing demo version of install4j, , have been struggling create installer.

the result right build installer runs, , installs generated exe , our other files in directory structure under it.

however starting generated executable doesnt work well. demo dialog shown, , after while application exits without error messages.

my guess of course crashes, because classpath incorrect or similar.

the problem is, have been playing around options in install4j couple of hours without change in behaviour, , i'm in dark right now. adding whole lib directory, "scan directory", adding jars individually etc etc.

is there way can debugging information out frm generated executable? or info @ abut going wrong?

the generated launcher has debug functionality on windows , mac os x includes constructed classpath.

on windows, start launcher command line prompt argument /create-i4j-log. log file created , message box shown can open if you wish.

alternatively, set environment variable

install4j_log=yes 

in case, no message box shown , have locate log file ("i4jlog...") in %temp% directory.

on mac os x, start launcher environment variable

install4j_log=yes 

then see logging output in console application. setting environment variable can done executing

launchctl setenv install4j_log yes

(temporary until reboot) or calling java stub command line this:

install4j_log=yes mylauncher.app/contents/macos/javaapplicationstub 

then see output in terminal.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -