HalogenWare

Locations of visitors to this page

Banner

Jnix

Read about what has been updated in version 1.2 here.

Jnix is a Launch4J compatible utility for wrapping jar files in shell scripts for deployment on Linux and Unix. It can also serve as a launcher script for jar files.

Jnix is a command line utility, you will either need to create a Launch4J configuration file by hand or use the Launch4J gui.

To create a wrapper or launcher for a jar file open a terminal and navigate to the jnix installation directory then type:

java -jar JnixBuild.jar "path to launch4j configuration file"

If java is not in your path you will need to provide the full path to java or on linux you can type:

sh ./jnix.sh -jar JnixBuild.jar "path to launch4j configuration file"

and jnix will find the path to a suitable version of java.

The output shell script may need to be marked as executable before it can be run.

Jnix requires the Sun JVM to be installed it is not compatible with the GCJ.

Requirements for running the output shell script are:

  • Bash version 2 or later must be available and the commands dirname, readlink, which.
  • The locate and find commands are highly recommended to be installed, on some systems they may be required to find an appropriate java installation.
  • The following commands may be needed depending on the Launch4J configuration options: xterm or x-terminal-emulator, kdialog or zenity or xmessage, xdg-open, grep, awk, free, nice.

Most Launch4J options are supported with the exception of:

  • Splash screen, custom icon and custom process name.
  • Single application instance.
  • Version and application information.

Jnix is provided under the terms and conditions of the BSD license.