java.lang.ClassFormatError: Illegal class name "com/google/common/collect/package-info" in class file com/google/common/collect/package-info

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Marek Parfianowicz [Atlassian], 1 year ago
Illegal class name "com/google/common/collect/package-info" in class file com/google/common/collect/package-info
via Atlassian JIRA by Marek Parfianowicz [Atlassian], 1 year ago
Illegal class name "com/google/common/collect/package-info" in class file com/google/common/collect/package-info
via Stack Overflow by rabusmar
, 2 years ago
Duplicate method name&signature in class file com/dnp/web/controllers/HomeController
via Icesoft by thedm, 1 year ago
Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet
java.lang.ClassFormatError: Illegal class name "com/google/common/collect/package-info" in class file com/google/common/collect/package-info
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1876)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at java.lang.Package.getPackageInfo(Package.java:352)
at java.lang.Package.getAnnotation(Package.java:367)
at org.codehaus.jackson.xc.JaxbAnnotationIntrospector.findAnnotation(JaxbAnnotationIntrospector.java:885)
at org.codehaus.jackson.xc.JaxbAnnotationIntrospector.findAccessType(JaxbAnnotationIntrospector.java:265)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
70 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.