2007 How to: COMPILE \ RUN java programs (code) in Windows (XP...) as a standalone app? BEST WAY
I have found numerous postings for this question but most are outdated, poorly answered or incomplete. So maybe this could be definitive...
COMPILING \ RUNNING java programs (code) in Windows (XP...)
I am unclear on how to "BEST" take my java program (.java) or create a (.class or .jar) and then send this to my friends and family who have Windows XP and have them be able to execute the program as a standalone app.
Many posts say I should just be able to double-click the .jar or .class file but this doesn't seem to work for many people. Some posts just offer links to apps that can create an .exe file (fine with me but they seem testy and flaky unless someone uses "a really good one.").
Some posts even want me to open a dos prompt and type java -cp .. whatever, no way!
So what is the BEST way to make my code portable as an executable (i.e. "Hey Jim! Just download this game I wrote in java into any folder and just double-click, it is so cool!"
Any help clearing up this "mysterious, why?" issue would be GREATLY appreciated!