3 ms·
How is the classpath problem different from manually specifying the -L and -I compiling that little c program exactly?
by mdpye 12y ago
How is the classpath problem different from manually specifying the -L and -I compiling that little c program exactly?
- schmichael 12y ago-L and -I are specified at compile time, so if you distribute/deploy a binary the runtime doesn't have to care (except in the case of dynamic linking - eek!) $CLASSPATH is purely runtime, so it's all the fun of dynamic linking, all the time. Monolithic shaded JARs can solve this problem but introduce some of their own.
- mdpye 12y agoSo someone has already gone to the effort of specifying them. In that case the analogous java situation is downloading a packaged jar and running java -jar mything.jar