permaculture playing cards*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41182
    
  45
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 - my free Android networking tools app
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make a application file
 
Similar Threads
make a jar file from source code in Netbeans
running a java class as a windows service
icon problem
Multiple log files depending on java class
to make an icon for application.