Is there a better alternative for -cp/CLASSPATH ?

Fernando Cassia fcassia at gmail.com
Wed Dec 14 10:00:26 UTC 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 ?

Yes, One-Jar.

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.

http://one-jar.sourceforge.net/

Fiddling with the classpath feels so 1990s...

FC
-- 
"The purpose of computing is insight, not numbers."
Richard Hamming - http://en.wikipedia.org/wiki/Hamming_code



More information about the discuss mailing list