   [java] Java in exe form?
  Im learning Java, and I know how to compile a program into a .jar, but a friend told me he thought it was possible to make a java program into an exe, but he didnt know how...Anyone know about this?Thanks,Lord Hen   "I am free of all prejudices. I hate everyone equally." - W. C. Fields[edited by - Lord Hen on December 2, 2008 2:32:49 AM]
  You could write a c++ program that simply loads the jar.   DISCLAIMER: If any of the above statements are incorrect, feel free to deliver me a good hard slap!My game: Swift blocks;  You can get a program that will do it for you.  One is called Jet.  It is a little expensive, but it works.  I have seen some free ones, but I have never been able to get them to work.   First make it work, then make it fast. --Brian KernighanThe problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities.  We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)Do not interrupt your enemy when he is making a mistake. - Napolean Bonaparte ;  you can also make executable jar files, as long as the user has a JRE setup. but do you want to make it an exe for convenience or to have it natively compiled?if its the later youre going to run into some troubles, most of those efforts (free versions at least), AFAIK, were abandoned a while back. check out jet...but i think youll find its not really worth it...the whole point is cross platform compatibility. double click running is pretty trivial to implement, and you can even have some premade files onhand to bundle with whatever project you want to publish. ;  look up exe4j it''s easy to use and not too hard to get ahold of.. ;  I''m not sure how mature GCC for Java (GCJ) is, but it should work for very simple Java applications.   Resist everyoneI am your only friend. Click here for more information.;  But one important note - unless you know *why* you want to compile Java bytecode to an executable, you probably don''t want to do it!--cfmdobbie ;  I was just wondering about this...I''m personally fine with running a java program from command line or whatever, but a friend of mine is too lazy(stupid?) to do it, and he just wants an exe he can click (sounds like he doesnt deserve to run my java programs, huh?).So, what do large-scale java apps do? I figure largly distributed apps would be user-friendly, so they would have a way to run the program in a way thats familiar to the users, like an executable.  Do they expect them to figure it out, or make a c++ program that starts it?Thanks,Lord Hen"I am free of all prejudices. I hate everyone equally." - W. C. Fields ;  It really is a trivial to make a shortcut called ''Run <Program name>'' whose shortcut would just be javaw -[params] <Program> ;quote:Original post by Lord Hen  I''m personally fine with running a java program from command line or whatever, but a friend of mine is too lazy(stupid?) to do it, and he just wants an exe he can click (sounds like he doesnt deserve to run my java programs, huh?).The pure-java way is an executable .jar file. This is basically  a single file containing all your compiled classes, and a small manifest file labling which is the main class. Compile once, deploy everywhere - no rebuilding needed.Or you can look into Webstart, which lets you launch apps with the click of a single link (like those two in my sig). Needs a ''net connection though, but you don;t have to keep putting files on disk to move them around and install. [S-Type] [V-Script]  