Launcher Options

JExpress uses a non-platform specific way to define ways for your customers to launch your system. For example, if your customer runs your installer on a Windows machine, then JExpress can add a Windows menu item on the Start | Programs menu. It also creates a double-clickable exe in your application directory to start your Java apps. If another customer uses the same installer on a Unix system, then your JExpress installer creates a launch script for them and a menu item if the customer is running Gnome, KDE, or Xfce.

Learn how to convert PNG to an ICO or ICNS file.

You can have your launchers added to the highest level of the menu system or desktop, or you can define a Group. If you'd like the launchers to be added to a deeper Group, then simply put a forward slash (/) in between each Group. You must always use the forward slash regardless of the OS you are using or targeting.

Click on the jump point or just page down to learn more about each setting on this panel.

 


 

Add

Click on the Add button to create a new launcher. Another dialog box pops up which allows you to define the launcher names and associated commands.

 

Launcher Settings

Click on the jump point or just page down to learn more about each setting on this panel.

 


 

Change

Highlight the launcher name that you'd like to change and then click on the Change button to modify the launcher's settings. Another dialog box pops up which allows you to define the launcher names and associated commands.

 

Launcher Settings

Click on the jump point or just page down to learn more about each setting on this panel.

 


 

Erase

Highlight the launcher name that you'd like to remove and then click on the Erase button. All the associated settings will be erased.

 


 

Tell user how to start your application

Add a check mark to this check box if you want your installer to remind your customers running on Windows which Group to use to start your application.

 


 

Launcher item

Fill in the name you'd like to appear on systems that support long names, e.g., Windows, Macintosh, Gnome, KDE, and Xfce systems.

On Windows machines, JExpress creates a menu item and desktop icon with this name and on Mac it creates a desktop icon.

To create a menu on Gnome, KDE, or Xfce systems or a unix launch script, then you must also fill in the short name.

 


 

Script name

Enter the name you'd like JExpress to use on systems that only support short names, e.g., Unix. This name will be used to create a script on the target system.

 


 

Icon filename

The filename that contains an icon to display when configuring this launcher on Windows, Mac OS X (Java apps only), KDE, or gnome. All the icon files must contain the same base name with the extension and they must all be located in the same directory.

For example, if you want to create launchers with icons on Windows, Mac, and KDE, then you'd create 3 icon files with the same base name (i.e., the name to the left of the period) and the extensions .ico, icns, and .png (for Windows, Mac, and KDE, respectively). All the files would need to be located in the same directory and you'd enter the full directory name and basename into the "icon filename" field on the launcher dialog box. So if your icons reside in c:\myapp\icons and you have the files myicon.ico, myicon.icns, and myicon.png in that directory, you'd enter: c:\myapp\icons\myicon in the "icon filename" field.

Here's a list of the icon extensions for the various platforms:

Platform File extension
Windows .ico
Mac OS X .icns
KDE ** .png
or
.xpm

Notes ** If there is a base name with both a .png and .xpm extension, then the .png file will be used in a Gnome, KDE, or Xfce launcher.

*** On Windows, the icon you specify is only used in the menu, not the EXE file that JExpress creates. You may be able to change the icon for the EXE with a freeware tool like Resource Hacker to the EXEs in the winapp\javamenus subdirectory. Remember that you'll need to apply the new icon whenever you receive an update to JExpress because JavaApp.exes can change with new versions.

DeNova does not officially support changing icons with third party programs, but it has worked for some of our customers. The most reliable way to change this is to buy a source license and change the icon included in the build.

Learn how to convert PNG to an ICO or ICNS file.

 


 

Java command

If the launcher is for a Java command, then you should check this box so JExpress will automatically add the JRE and other parameters to your command to your class. If you want to run a non-Java program when the user selects this launcher, then you should not check this box.

 


 

Show Java console

If the launcher requires the Java console, then add a check mark to this box so JExpress will automatically use the console based JVM. Be sure to also add a check mark to the Java command box or this field is ignored during in the installer.

 


 

Executable file

Type in the name of the Java class or stand-alone program that you want started when someone selects this launcher. This field should only contain a filename, and any necessary subdirectory names relative to the installation directory, that is included in with your installer. Your JExpress installer automatically adjusts the file separators (e.g., \ or /) to the target system.

If the launcher starts your Java app, then the class filename, including any required package name, that contains the Main method must be entered into this field. For example, if your Java application's Main resides in myApp.class and myApp.class is part of the com.myCompany package, then you should enter com.myComany.myApp into the Executable file field.

If you don't know the name of the class that contains the Main method and your class files are contained in a JAR file, then you can unjar your JAR file and look at the META-INF/MANIFEST.MF file with a text editor. You'll find a line, near the top of the file, which gives the property for the Main-Class:. Copy the entire line after the : and paste it into the Executable file field.

Important: If you usually start your Java app with the -jar parameter, then please follow the instructions in the tutorial to insure that all the fields are entered correctly.

If you want to create a launcher on Windows that displays an HTML file, then you should fill in the HTML filename in this field. Almost all Windows systems today are configured so they will automatically launch the user's web browser when the command line contains an .html or .htm filename. You should not include a script name for a launcher which is just the HTML filename, because no other OS currently supports automatic launching of filenames.

Required field.

 

 


 

   Welcome    |    Install    |    Layout    |    Files   |    Menus   |    Auto update    |    Build
 

© 1997-2011 DeNova.com