running java under Windows 7
This may be a Windows 7 problem and have nothing to do with Java ... so let me apologize from the start!
I have been writing all my Java programs on a Mac. Once the program is compiled, an icon associated with the main class appears. If I click the icon, the program runs swimmingly.
When I try to run the same program under Windows 7 by clicking on the main class file, Windows 7 asks, "Which program do you want to open the file with?" If I select Java, I get a spinning circle ... kind of like my program going down the toilet ... and the program never runs.
I can compile and run the program from the command prompt.
Is there some arcane Windows trick I must employ to get the program to run just by clicking the icon?