captainmnb
April 14th, 2009, 07:20 AM
I've created a small Java program, and I currently run it with
java ClassName
or I suppose I could pretty easily package it in a JAR and run it with
java -jar whatever.jar
What I would like to do, however, is somehow make it so that I could put it in /usr/bin and run it straight from the terminal (it's a console-based program) with a single directory-independent call to the program's name. Is this possible with Java (and for a beginner) on Ubuntu?
java ClassName
or I suppose I could pretty easily package it in a JAR and run it with
java -jar whatever.jar
What I would like to do, however, is somehow make it so that I could put it in /usr/bin and run it straight from the terminal (it's a console-based program) with a single directory-independent call to the program's name. Is this possible with Java (and for a beginner) on Ubuntu?