Results 1 to 7 of 7
- 07-19-2010, 11:03 PM #1
Member
- Join Date
- Jun 2010
- Posts
- 5
- Rep Power
- 0
- 07-19-2010, 11:37 PM #2
No idea. I always use jar files.
- 07-20-2010, 02:56 AM #3
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,606
- Rep Power
- 5
Quite a few apps out there to do this for you. JSmooth, Launch4j, etc...Just google. If you just want a double clickable file, just package it as an executable .jar
- 07-20-2010, 08:31 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,400
- Blog Entries
- 7
- Rep Power
- 17
But Java does produce machine code in the end; an ordinary compiler translates source code (e.g. C or C++) to machine code directly. The Java compiler (javac) produces 'byte code' which are machine code instructions for a hypothetical machine, the virtual machine. That virtual machine interprets the byte code but there is a largely misunderstood mechanism: the HotSpot mechanism and its JIT compiler (Just In Time). When the HotSpot mechanism detects that a piece of byte code is interpreted (slow) repeatedly, for instance the code that makes up the body of a loop, it calls the JIT compiler that translates the byte code to ordinary machine code (fast). If your Java program runs long enough the HotSpot mechanism has compiled all your byte code (virtual machine code) to real machine code. There is no need to produce real machine code in one step (see above). A benefit is that the machine code produced in two steps is often 'better' (mind the quotes) than the machine code produced in one step.
kind regards,
Jos
- 07-20-2010, 01:00 PM #5
Yes you can, you can download .bat to .exe converters, all you have to do is make a bat file to run you application.
- 07-20-2010, 01:16 PM #6
What does a .bat file have to do with creating a .exe file from a .java file?
- 07-21-2010, 02:56 PM #7
Similar Threads
-
Convert avi, mpeg, wmv media files to .flv files in java code
By vinay1497 in forum New To JavaReplies: 8Last Post: 07-30-2010, 05:47 PM -
conversion of java .class files to .java files
By kotturupraveen in forum New To JavaReplies: 2Last Post: 06-09-2008, 12:58 PM -
how to convert mpeg files to .wav files
By christina in forum New To JavaReplies: 1Last Post: 08-06-2007, 04:14 AM -
convert xls files into pdf files
By bbq in forum New To JavaReplies: 3Last Post: 07-20-2007, 03:56 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks