Is there a better alternative for -cp/CLASSPATH ?
fcassia at gmail.com
Wed Dec 14 02:00:26 PST 2011
On Tue, Dec 13, 2011 at 13:21, Timothy Madden <terminatorul at gmail.com> wrote:
> Is there a way to launch java applications (classes), without having to know
> and to specify where the .class files are installed all the time ?
My favorite Java apps (desktop Java) are properly packaged as a single
.jar file and can be run by just issuing java -jar appname.jar.
I think Sun should have made One-Jar part of the JDK and its use mandatory.
Fiddling with the classpath feels so 1990s...
"The purpose of computing is insight, not numbers."
Richard Hamming - http://en.wikipedia.org/wiki/Hamming_code
More information about the discuss