Scala compile message - Class file or Jar is broken
Sometimes when compiling my Scala code, the compiler output may need a little bit of help in sorting out what’s the real issue. For example, when I compiled today I received the following error: [sourcecode language=“jscript”] [scalac] error: error while loading DefaultHttpClient, class file ‘C:\A_OpenSource\WicketNotesApp\lib\httpclient-4.0.jar(org/apache/http/impl/client/DefaultHttpClient.class)’ is broken [scalac] (class net.jcip.annotations.ThreadSafe not found.) [scalac] error: error while loading AbstractHttpClient, class file ‘C:\A_OpenSource\WicketNotesApp\lib\httpclient-4.0.jar(org/apache/http/impl/client/AbstractHttpClient.class)’ is broken [scalac] (class net.jcip.annotations.ThreadSafe not found.) [/sourcecode] And my instinct tells me to focus on the jar file or the class file and in this case, “DefaultHttpClient.