smt52
Posts: 8
Joined: Sun Jul 10, 2005 11:16 pm

How do I run an individual .class file with the .exe?

*** Overview

For Java, how would we instruct the .exe file generated by Advanced Installer, to run a specific .class file?

*** Details

I would rather not have Advanced Installer wrap up my files in a .jar file. How would I make it so that the .exe file generated by Advanced Installer runs a specific .class file in the root directory of my installation?

I want to execute the .class file directory, with all the advantages that the .exe file brings: checking of JVM, multiple instance checking, etc.
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi,

1. Advanced Installer doesn't wrap the files inside a JAR. The jar file must be created by the user and then added to the project like any other file.

2. Here is how you could run a specific .class file.

- Place that file in a separate folder. In the "Files and Folders" page use the [ New Folder ] toolbar button to create a regular folder. Place the .class file in that folder.

- Go to the "Java Products" page Use the [ Folder ] button to add the created folder to the "Classpath".

- Select from the "Main Class" drop-down list the name of the class.

In order to set your application to run in "Single Instance" mode you must first specify in the Main class of your application a method with the signature:

public static secondaryMain(String args[])

This method will be called every time the application is reinstantiated.

For more information please visit:
http://www.advancedinstaller.com/user-g ... tings.html

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”