run java programs from the command line...howto?
i have written a java program which is basically a port of the famous BSD games fortune.
Whenever i have to run the program i have to do:
java jfortune <filename>
now i was just wondering how i can run this like a normal program(you know the ones which are in /usr/bin) and have it run automatically without having to have the .class file in the same directory and without having to type java.
do you think writing a small shell script to do this would work?
thanks a lot.