snacktory icon indicating copy to clipboard operation
snacktory copied to clipboard

NoClassDefFoundError: Could not initialize class de.jetwick.snacktory.HtmlFetcher

Open danielabar opened this issue 8 years ago • 4 comments

I'm using snacktory with IntelliJ 15 and Gradle. The following was working yesterday, but stopped working today:

repositories {
  maven {
    url "https://github.com/karussell/mvnrepo/raw/master/releases/"
  }
}
dependencies {
  compile('de.jetwick:snacktory:1.2')
}

Getting errors from HtmlFetcher fetcher = new HtmlFetcher();:

java.lang.NoClassDefFoundError: Could not initialize class de.jetwick.snacktory.HtmlFetcher

Things I tried in IntelliJ:

  • refresh gradle deps
  • Build -> Rebuild Project
  • File -> Invalidate Caches/Restart

Interesting if I build a jar with dependencies and run javac -jar..., then it does seem to work.

Any ideas what might have gone wrong?

danielabar avatar Jun 30 '16 18:06 danielabar

Sorry, no experience with gradle. Maybe just a connection problem to the github repo and you should try it again?

karussell avatar Jun 30 '16 19:06 karussell

Would it be possible to publish this to maven central?

danielabar avatar Jun 30 '16 22:06 danielabar

I have no time for this project anymore, sorry. Maybe you are interested in taking it over :) ?

karussell avatar Jul 01 '16 08:07 karussell

I'll definitely consider it. In the meantime will try and investigate why IntelliJ stopped connecting to the repo.

Thanks for the quick reply!

danielabar avatar Jul 01 '16 19:07 danielabar