File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

Joined: Mar 22, 2005
Posts: 42965
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.
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.).

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.
I agree. Here's the link:
subject: How to make a application file
It's not a secret anymore!