{"id":5545,"date":"2014-03-31T00:20:39","date_gmt":"2014-03-31T00:20:39","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/31\/mark-occurences-for-binary-files-in-sts-collection-of-common-programming-errors\/"},"modified":"2014-03-31T00:20:39","modified_gmt":"2014-03-31T00:20:39","slug":"mark-occurences-for-binary-files-in-sts-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/31\/mark-occurences-for-binary-files-in-sts-collection-of-common-programming-errors\/","title":{"rendered":"Mark Occurences for binary files in STS-Collection of common programming errors"},"content":{"rendered":"<p>This is complicated and it is not a maven or an STS bug. Rather, it is a Eclipse JDT bug. Mark occurrences cannot work unless the class file and all of its dependencies can be classloaded using the current project&#8217;s classpath. So, there must be some dependency that is missing for the class in question. It is probably available at runtime through maven, but just not at edit time.<\/p>\n<p>It is very tricky to fix this problem, but you can start by explicitly adding all transitive dependencies to your pom.xml.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is complicated and it is not a maven or an STS bug. Rather, it is a Eclipse JDT bug. Mark occurrences cannot work unless the class file and all of its dependencies can be classloaded using the current project&#8217;s classpath. So, there must be some dependency that is missing for the class in question. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5545","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5545"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5545\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}