>> I know people are getting tired of answering it, and i've [sic] been
searching the web for hours, but i [sic] still don't get it! I need to
convert my .class file into native windows machine executable (.exe)
that does not require JRE. How do I do it? Does the java [sic] JDK include a
file that converts it into .exe?
Arne said:
The simple answer is that you don't !
You create an executable jar, let your users install JRE and
then they doubleclick on your jar and it runs.
There are various third party solution like Jet Excelsior
etc., but they are not widely used in the Java world.
To expound, if you need an .exe, don't use Java. It is not uncommon for
Windows machines to have Java installed, and not hard to get it installed when
you distribute Java programs, so the actual benefit of "executablization" of
Java programs is, at best, very questionable.
AIUI, so-called "solutions" to this so-called "problem" consist of bundling
the JRE inside the .exe itself, hardly an elegant solution. Since version
6u10, Java has gotten more clever about minimizing its footprint for the
average program, so there's really no good reason to do this anyway.
You have to download Flash to run .swf files, Word or an associated reader or
OpenOffice to read .doc files, Media Player or equivalent for .mpg, etc. What
is the big deal about downloading Java for .jar files?
Go with Arne's advice.
BTW, "Java", being a trademark, is spelled with a capital "J", and the word
"I" in English, being English, should always be capitalized. This is good
discipline for those who program in the Java language, which is case sensitive.