aspose file tools*
The moose likes Beginning Java and the fly likes Making a class executable. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Making a class executable." Watch "Making a class executable." New topic
Author

Making a class executable.

Jon Go
Greenhorn

Joined: Jan 25, 2001
Posts: 13
Hi how do you make a class exutable?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Do you mean as in HelloWorld.exe? You don't without some expensive software. The ideal way to execute a java class or set of classes is using JAR files. On a Windows system you can execute a JAR file by double clicking on the file. Or you can write a batch file/shell script that executes the JAR file or Class file is you prefer. Here is a link on how to create JAR files. Good luck!!
http://java.sun.com/docs/books/tutorial/jar/index.html


GenRocket - Experts at Building Test Data
Jon Go
Greenhorn

Joined: Jan 25, 2001
Posts: 13
How do you go about the shell-script thing that you mentioned, and also how do you add an icon to it so you can click on the desktop and it will execute.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making a class executable.