Archive: Java virtual machine launcher could not find the main class program will exit


Java virtual machine launcher could not find the main class program will exit
I have tried the "NSIS Example Application 1" from http://www.seas.gwu.edu/~simhaweb/ja...r/install.html
(i.e. Using NSIS To Make Installable Java Applications) its working fine but when i use the same code in my application the window pop ups saying " Java virtual machine launcher could not find the main class program will exit"
what is the problem??

Thanks in Advance....


Sounds like you didn't replace all the strings you needed. Make sure you replace it in the shortcuts and also add every class your class depends on.


Java virtual machine launcher could not find the main class program will exit
Thanks kichik,
i have checked all the code once again....still its giving the same error. NSIS Example Application 1 is working fine ; only
i have made changes in the createshortcut field.


Can you attach your script?


Hi Kichik,

Please find the attached script. I have one more doubt can i add two component pages one after another & how to add the different control on the same. can i call the java application if an event occurs on the page.


The shortcut you create points to "My" and that's it. Is that your class' name? Where do you extract it? How can javaw.exe find it? You should set the starting directory of the shortcut with SetOutPath.

See my answer in the second thread for the events.