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 executable programs!? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "executable programs!?" Watch "executable programs!?" New topic

executable programs!?

Davy Kelly
Ranch Hand

Joined: Jan 12, 2004
Posts: 384
Hey guys, I am playing with the idea of making up a basic text editor then imporving upon this until I have an inbetween version of notepad and word, something i can be proud of but not too big.
my question is this.... Can I make the program run if I click on an icon, e.g. like notepad? or does it always have to be run from the command line?

How simple does it have to be???
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
It depends on what operating system you are using. For Windows at least, it tries to run executable JARs much as you would expect normal programs to operate. I'm not sure about the others. You can always create wrappers around the "java" command so you CAN just click on something and it will invoke what we normally have to type in the command line. If I remember correctly, Apache or Tomcat has a project that aims to make that much easier than doing it all yourself.

I agree. Here's the link:
subject: executable programs!?
It's not a secret anymore!