I meet each day dozens of similar questions where people claim about java.lang.ClassNotFoundException
in java.
Just recent examples:
java.lang.ClassNotFoundException:org.apache.tika.sax.BodyContentHandler
https://stackoverflow.com/questions/42273799/classnotfoundexception-in-httpclient-api
In most cases it looks like that people have deep misunderstanding of principles about linking libraries, building and running jars with classpath.
I consider all such questions as duplicates, but I'm not sure which question should be considered as "mother" question in this case. I've thought it is What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException?
but I'm not sure on 100%. There is also How do I resolve this Java Class not found exception? question, but it is also has quite pure explaining of steps for solving this problem.
I believe we need something like this question: What is a NullPointerException, and how do I fix it? for ClassNotFoundException
case.
So, I'm looking for authoritative community advice, what question use for such cases for closing them as duplicates?
UPD: I've also created https://stackoverflow.com/questions/42274603/program-works-from-ide-but-when-running-it-outside-ide-i-receive-classnotfound question for this purpose.