murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Java Products Single Instance

Hi,

My application has a runnable JAR file (say MyJavaStarter.JAR) in the APPDIR folder, which I have added in the Java Products page.
I have selected the 'Single Instance' property in the 'Application' -> 'Type' option, in the 'Java Product' page, 'Settings' TAB.

After, installation, when I run my application, though only one window (Java Swing window) is opened,
each time i double click the MyJavaStarter.exe (which Advanced Installer adds along with MyJavaStarter.JAR in the APPDIR),
i can see a new process being started under the 'Processes' TAB in 'Windows Task Manager'.

How can I avoid this ?

Thanks

ASH.
murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Re: Java Products Single Instance

Hi,

I found the solution myself..

Just add the following method in your main class :


static void secondaryMain( String args[] ){
}

As EZ As THT... :) : )

Return to “Common Problems”