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

Executable files?

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
ok, i have programs im doing for class, but i want them to be able to execute when double clicked....

how do i go about doing this?

i would appreciate the help, thx!



You down with OOP? Yeah you know me!
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3710
    
    5

There are many ways to do this (and this topic gets asked often enough). I find the best solution is to make an excecutable JAR for your code. Google is full of solutions for how to do this.


My Blog: Down Home Country Coding with Scott Selikoff
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
thank you very much, i appreciate it..
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Excutable JAR will NOT help you if your output is text based, means DOS prompt/whatever will NOT show up.

Executable JAR is preffered for GUI stuff. You can use batch file.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Originally posted by Vishnu Prakash:
Excutable JAR will NOT help you if your output is text based, means DOS prompt/whatever will NOT show up.

Executable JAR is preffered for GUI stuff. You can use batch file.


In my opinion, it seems pointless to make a text-based app "double-clickable" anyways. Perhaps I'm a little biased towards the command-line, when it seems the most appropriate tool, at least.

Layne
[ January 27, 2006: Message edited by: Layne Lund ]

Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Executable files?