Hi, I am having problems with single java instance.
As described by the user mannual, I added the following codes into the program,
static void secondaryMain(String args[]){
shell.dispose();
}
and selected single instance option on configuration panel.
However, when I associated certain file type to the program, and performed a double click on the file, it didn't behave on what it should be.
In detail, when I double clicked on the file, it launched the application and popullated the data; but when i clicked on another file, nothing was changed, ( the single instance is actually working, it just doesn't go into the secondaryMain() function, by right it should dispose the current shell).
In addtion, I oso have problem with file path configuration. Means when I double click on a file, the JVM gives source file not found error. It only works when i drag the file into the installation folder.
Can anyone provide me a solution.
Thx a lot
SIP
FOLLOW US
Get the latest news in Application Packaging