A few days ago in the project to use the JSON format data, so the use of JSON needs to be used in the package to lead to the project, the program is written after the run, the discovery of the background report
Java.lang.noclassdeffounderror:net/sf/json/jsonarray error, began to think that the corresponding jar package introduced a problem, after the inspection found that all the packages have been introduced, how can this problem occur?
Originally I used the ECLIPSE+TOMCAT environment, because the project has been deployed, using Jason's package is added later, I configured in Eclipse, but eclipse will not automatically redeploy these packages into Tomcat, so when the site is running, I can't find the wrong kind of the newspaper.
Since this is the case, deploying the corresponding Jar package to Tomcat solves the problem.
Java.lang.NoClassDefFoundError workaround with JSON