aspose file tools*
The moose likes Beginning Java and the fly likes How to make a application file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to make a application file " Watch "How to make a application file " New topic
Author

How to make a application file

Zakir Hossain
Ranch Hand

Joined: Feb 14, 2006
Posts: 38
hi there
can you guys tel me how to make an application file in java to run in other machine which dosent have Java Software.


"The Choices We Make, Dictates Our Life To Lead".
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
You can't. Java classes need the JVM to execute.

You can use the GCJ compiler (or some other compiler) to create native code -which would be executable on machines without a JVM-, but that won't be cross-platform any more.


Ping & DNS - updated with new look and Ping home screen widget
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
And of course gcj doesn't comply with the standard, so a LOT of code will not work with it (think Swing, AWT, multithreading, Collections API, etc. etc. etc.).


42
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
It's also possible to bundle a JVM/JRE along with your application, which is perhaps good enough for your purposes. Can someone elucidate or give pointers that describe the easiest possible way of accomplishing this?


ASCII silly question, Get a silly ANSI.
Jaime M. Tovar
Ranch Hand

Joined: Mar 28, 2005
Posts: 133
Maybe java web start


She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to make a application file
 
Similar Threads
running a java class as a windows service
Multiple log files depending on java class
icon problem
make a jar file from source code in Netbeans
to make an icon for application.