Starting a jar file.
I am wondering if anyone might have a suggestion to this.
I have created a .jar file from JBuilder using the application option in archive builder. ie the jar file should be able to start just by double clicking it. I take the jar file to one of my other machines and it starts fine. I use the java - jar command and it works fine. I double click it in my Windows XP and I get the error: Java Virtual Machine Launcher - "Could not find the main class. Program will exit."
I did read a case in the postings where a startup file was creating havoc, but I don't think I have any java dependent startup's.
I have tried various things like checking my classpath environment variables, associating the file with Javaw from C:\j2sdk1.4.2_03\bin. Any other comments would be appreciated.
cheers
James
[846 byte] By [
talljames] at [2007-9-30 2:41:47]

Well, I guess I found the answer of some sort. I tried JWhich from the URLhttp://www.javaworld.com/javaworld/javatips/jw-javatip105.html, but that didn't work. But, what it did do is that it told the O/S that I had changed the jar launch settings when I went into Tools/options/view File Types of explorer and after highlighting the jar extension. This would have come up if I had changed it to something else anyway. I guess I just didn't notice the little message. The GUI gave me an option if I wanted to restore back to original and walla! it now works.
Hope this is of use to you if you come across this problem and not sure what to do.
cheers..
James
thanks inco5, sorry left the rest of the association off my original. I did try that, with no success. But, fixed it now. Thanks for posting.cheers