Hacker News new | past | comments | ask | show | jobs | submit login

How is the classpath problem different from manually specifying the -L and -I compiling that little c program exactly?



-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.


So 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: