Java - run my program anywhere?

Status
Not open for further replies.

snotnose

Ars Praefectus
3,454
Subscriptor
Wrote myself a Java program, need to run it from several directories. Right now in my development directory I javac foo.java, then copy foo.java and foo.class to /tmp, then from wherever I need to run the program I copy /tmp/foo.* . . This is, in a word, stupid.

What hoops do I need to jump through so I can pop an executable somewhere, then use that executable from anywhere?

My foo.java is a 1 file program, there is no bar.java nor blatz.java contributing. Just foo.java.

I've got Eclipse but tend to not use it. I develop with vim and command line tools.
 
Status
Not open for further replies.