question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.0.0-M15-2 gives NoClassDefFoundError: org/vafer/jdeb/Console

See original GitHub issue

I was trying out 1.0.0-M15-2 which resulted in a missing class.

~/currentproject $ sbt compile
[info] Loading global plugins from /Users/me/.sbt/0.13/plugins
[warn] Multiple resolvers having different access mechanism configured with same name 'sbt-plugin-releases'. To avoid conflict, Remove duplicate project resolvers (`resolvers`) or rename publishing resolver (`publishTo`).
[info] Updating {file:/Users/me/.sbt/0.13/plugins/}global-plugins...
[info] Resolving io.get-coursier#sbt-coursier;1.0.0-M15-2 ...
[error] SERVER ERROR: Proxy Error url=http://nexus.company.com/content/groups/public/io.get-coursier/sbt-coursier/scala_2.10/sbt_0.13/1.0.0-M15-2/ivys/ivy.xml
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading http://nexus.company.com/content/groups/public/io/get-coursier/sbt-coursier_2.10_0.13/1.0.0-M15-2/sbt-coursier-1.0.0-M15-2.jar ...
[info] 	[SUCCESSFUL ] io.get-coursier#sbt-coursier;1.0.0-M15-2!sbt-coursier.jar (415ms)
[info] downloading http://nexus.company.com/content/groups/public/io/get-coursier/coursier_2.10/1.0.0-M15-2/coursier_2.10-1.0.0-M15-2.jar ...
[info] 	[SUCCESSFUL ] io.get-coursier#coursier_2.10;1.0.0-M15-2!coursier_2.10.jar (6791ms)
[info] downloading http://nexus.company.com/content/groups/public/io/get-coursier/coursier-cache_2.10/1.0.0-M15-2/coursier-cache_2.10-1.0.0-M15-2.jar ...
[info] 	[SUCCESSFUL ] io.get-coursier#coursier-cache_2.10;1.0.0-M15-2!coursier-cache_2.10.jar (841ms)
[info] downloading http://nexus.company.com/content/groups/public/org/scalaz/scalaz-core_2.10/7.2.8/scalaz-core_2.10-7.2.8.jar ...
[info] 	[SUCCESSFUL ] org.scalaz#scalaz-core_2.10;7.2.8!scalaz-core_2.10.jar(bundle) (1641ms)
[info] downloading http://nexus.company.com/content/groups/public/org/jsoup/jsoup/1.10.2/jsoup-1.10.2.jar ...
[info] 	[SUCCESSFUL ] org.jsoup#jsoup;1.10.2!jsoup.jar (122ms)
[info] downloading http://nexus.company.com/content/groups/public/org/scalaz/scalaz-concurrent_2.10/7.2.8/scalaz-concurrent_2.10-7.2.8.jar ...
[info] 	[SUCCESSFUL ] org.scalaz#scalaz-concurrent_2.10;7.2.8!scalaz-concurrent_2.10.jar(bundle) (132ms)
[info] downloading http://nexus.company.com/content/groups/public/org/scalaz/scalaz-effect_2.10/7.2.8/scalaz-effect_2.10-7.2.8.jar ...
[info] 	[SUCCESSFUL ] org.scalaz#scalaz-effect_2.10;7.2.8!scalaz-effect_2.10.jar(bundle) (147ms)
[info] Done updating.
[info] Loading project definition from /Users/me/currentproject/project
http://nexus.company.com/content/groups/public/io/get-coursier/sbt-coursier_2.10_0.13/1.0.0-M15-2/sbt-coursier-1.0.0-M15-2.pom
  100,0% [##########] 3,0 KiB (75,9 KiB / s)
http://nexus.company.com/content/groups/public/io/get-coursier/coursier_2.10/1.0.0-M15-2/coursier_2.10-1.0.0-M15-2.pom
  100,0% [##########] 2,6 KiB (3,4 KiB / s)
http://nexus.company.com/content/groups/public/io/get-coursier/coursier-cache_2.10/1.0.0-M15-2/coursier-cache_2.10-1.0.0-M15-2.pom
  100,0% [##########] 2,5 KiB (1,8 KiB / s)
http://nexus.company.com/content/groups/public/org/scalaz/scalaz-concurrent_2.10/7.2.8/scalaz-concurrent_2.10-7.2.8.pom
  100,0% [##########] 3,1 KiB (82,3 KiB / s)
http://nexus.company.com/content/groups/public/org/scalaz/scalaz-core_2.10/7.2.8/scalaz-core_2.10-7.2.8.pom
  100,0% [##########] 2,8 KiB (70,8 KiB / s)
http://nexus.company.com/content/groups/public/org/jsoup/jsoup/1.10.2/jsoup-1.10.2.pom
  100,0% [##########] 7,1 KiB (197,8 KiB / s)
http://nexus.company.com/content/groups/public/org/scalaz/scalaz-effect_2.10/7.2.8/scalaz-effect_2.10-7.2.8.pom
  100,0% [##########] 2,9 KiB (2,5 KiB / s)
http://nexus.company.com/content/groups/public/com/fasterxml/jackson/core/jackson-annotations/2.3.0/jackson-annotations-2.3.0.pom
  100,0% [##########] 1,3 KiB (927 B / s)
http://nexus.company.com/content/groups/public/com/fasterxml/jackson/core/jackson-annotations/2.3.0/jackson-annotations-2.3.0.jar
  100,0% [##########] 34,2 KiB (12,1 KiB / s)
http://nexus.company.com/content/groups/public/io/get-coursier/coursier-cache_2.10/1.0.0-M15-2/coursier-cache_2.10-1.0.0-M15-2.jar
  100,0% [##########] 317,2 KiB (101,9 KiB / s)
http://nexus.company.com/content/groups/public/org/scalaz/scalaz-effect_2.10/7.2.8/scalaz-effect_2.10-7.2.8.jar
  100,0% [##########] 389,5 KiB (124,5 KiB / s)
http://nexus.company.com/content/groups/public/io/get-coursier/sbt-coursier_2.10_0.13/1.0.0-M15-2/sbt-coursier-1.0.0-M15-2.jar
  100,0% [##########] 404,3 KiB (126,7 KiB / s)
http://nexus.company.com/content/groups/public/org/jsoup/jsoup/1.10.2/jsoup-1.10.2.jar
  100,0% [##########] 342,4 KiB (920,5 KiB / s)
http://nexus.company.com/content/groups/public/org/scalaz/scalaz-concurrent_2.10/7.2.8/scalaz-concurrent_2.10-7.2.8.jar
  100,0% [##########] 313,1 KiB (1,3 MiB / s)
http://nexus.company.com/content/groups/public/io/get-coursier/coursier_2.10/1.0.0-M15-2/coursier_2.10-1.0.0-M15-2.jar
  100,0% [##########] 1,2 MiB (343,7 KiB / s)
java.lang.NoClassDefFoundError: org/vafer/jdeb/Console
	at com.typesafe.sbt.packager.debian.JDebPackaging$class.debianJDebSettings(JDebPackaging.scala:42)
	at com.typesafe.sbt.SbtNativePackager$.debianJDebSettings(PackagerPlugin.scala:11)
	at com.typesafe.sbt.packager.debian.DebianPlugin$class.debianSettings(DebianPlugin.scala:186)
	at com.typesafe.sbt.SbtNativePackager$.debianSettings(PackagerPlugin.scala:11)
	at com.typesafe.sbt.SbtNativePackager$.packagerSettings(PackagerPlugin.scala:25)
	at com.typesafe.sbt.SbtNativePackager$packageArchetype$.genericMappingSettings(PackagerPlugin.scala:47)
	at com.typesafe.sbt.SbtNativePackager$packageArchetype$.java_server(PackagerPlugin.scala:51)
	at play.Play$.projectSettings(Project.scala:32)
	at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
	at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
	at scala.collection.immutable.List.foreach(List.scala:318)
	at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
	at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
	at sbt.Load$.autoPluginSettings$1(Load.scala:666)
	at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:681)
	at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:682)
	at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:682)
	at scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:51)
	at scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:60)
	at scala.collection.mutable.WrappedArray.foldLeft(WrappedArray.scala:34)
	at scala.collection.TraversableOnce$class.$div$colon(TraversableOnce.scala:138)
	at scala.collection.AbstractTraversable.$div$colon(Traversable.scala:105)
	at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:682)
	at sbt.Load$.resolveProject(Load.scala:684)
	at sbt.Load$.finalizeProject$1(Load.scala:549)
	at sbt.Load$.discoverAndLoad$1(Load.scala:562)
	at sbt.Load$.loadTransitive(Load.scala:570)
	at sbt.Load$.loadProjects$1(Load.scala:442)
	at sbt.Load$.loadUnit(Load.scala:446)
	at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
	at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
	at sbt.BuildLoader.apply(BuildLoader.scala:140)
	at sbt.Load$.loadAll(Load.scala:334)
	at sbt.Load$.loadURI(Load.scala:289)
	at sbt.Load$.load(Load.scala:285)
	at sbt.Load$.load(Load.scala:276)
	at sbt.Load$.apply(Load.scala:130)
	at sbt.Load$.defaultLoad(Load.scala:36)
	at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
	at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
	at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
	at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
	at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
	at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
	at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
	at sbt.Command$.process(Command.scala:92)
	at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
	at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
	at sbt.State$$anon$1.process(State.scala:184)
	at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
	at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.MainLoop$.next(MainLoop.scala:98)
	at sbt.MainLoop$.run(MainLoop.scala:91)
	at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
	at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
	at sbt.Using.apply(Using.scala:24)
	at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
	at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
	at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
	at sbt.MainLoop$.runLogged(MainLoop.scala:24)
	at sbt.StandardMain$.runManaged(Main.scala:53)
	at sbt.xMain.run(Main.scala:28)
	at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
	at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
	at xsbt.boot.Launch$.run(Launch.scala:109)
	at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
	at xsbt.boot.Launch$.launch(Launch.scala:117)
	at xsbt.boot.Launch$.apply(Launch.scala:18)
	at xsbt.boot.Boot$.runImpl(Boot.scala:41)
	at xsbt.boot.Boot$.main(Boot.scala:17)
	at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.lang.ClassNotFoundException: org.vafer.jdeb.Console
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at com.typesafe.sbt.packager.debian.JDebPackaging$class.debianJDebSettings(JDebPackaging.scala:42)
	at com.typesafe.sbt.SbtNativePackager$.debianJDebSettings(PackagerPlugin.scala:11)
	at com.typesafe.sbt.packager.debian.DebianPlugin$class.debianSettings(DebianPlugin.scala:186)
	at com.typesafe.sbt.SbtNativePackager$.debianSettings(PackagerPlugin.scala:11)
	at com.typesafe.sbt.SbtNativePackager$.packagerSettings(PackagerPlugin.scala:25)
	at com.typesafe.sbt.SbtNativePackager$packageArchetype$.genericMappingSettings(PackagerPlugin.scala:47)
	at com.typesafe.sbt.SbtNativePackager$packageArchetype$.java_server(PackagerPlugin.scala:51)
	at play.Play$.projectSettings(Project.scala:32)
	at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
	at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
	at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
	at scala.collection.immutable.List.foreach(List.scala:318)
	at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
	at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
	at sbt.Load$.autoPluginSettings$1(Load.scala:666)
	at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:681)
	at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:682)
	at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:682)
	at scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:51)
	at scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:60)
	at scala.collection.mutable.WrappedArray.foldLeft(WrappedArray.scala:34)
	at scala.collection.TraversableOnce$class.$div$colon(TraversableOnce.scala:138)
	at scala.collection.AbstractTraversable.$div$colon(Traversable.scala:105)
	at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:682)
	at sbt.Load$.resolveProject(Load.scala:684)
	at sbt.Load$.finalizeProject$1(Load.scala:549)
	at sbt.Load$.discoverAndLoad$1(Load.scala:562)
	at sbt.Load$.loadTransitive(Load.scala:570)
	at sbt.Load$.loadProjects$1(Load.scala:442)
	at sbt.Load$.loadUnit(Load.scala:446)
	at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
	at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
	at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
	at sbt.BuildLoader.apply(BuildLoader.scala:140)
	at sbt.Load$.loadAll(Load.scala:334)
	at sbt.Load$.loadURI(Load.scala:289)
	at sbt.Load$.load(Load.scala:285)
	at sbt.Load$.load(Load.scala:276)
	at sbt.Load$.apply(Load.scala:130)
	at sbt.Load$.defaultLoad(Load.scala:36)
	at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
	at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
	at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
	at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
	at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
	at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
	at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
	at sbt.Command$.process(Command.scala:92)
	at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
	at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
	at sbt.State$$anon$1.process(State.scala:184)
	at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
	at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
	at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
	at sbt.MainLoop$.next(MainLoop.scala:98)
	at sbt.MainLoop$.run(MainLoop.scala:91)
	at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
	at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
	at sbt.Using.apply(Using.scala:24)
	at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
	at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
	at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
	at sbt.MainLoop$.runLogged(MainLoop.scala:24)
	at sbt.StandardMain$.runManaged(Main.scala:53)
	at sbt.xMain.run(Main.scala:28)
	at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
	at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
	at xsbt.boot.Launch$.run(Launch.scala:109)
	at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
	at xsbt.boot.Launch$.launch(Launch.scala:117)
	at xsbt.boot.Launch$.apply(Launch.scala:18)
	at xsbt.boot.Boot$.runImpl(Boot.scala:41)
	at xsbt.boot.Boot$.main(Boot.scala:17)
	at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.NoClassDefFoundError: org/vafer/jdeb/Console
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:12
  • Comments:28 (7 by maintainers)

github_iconTop GitHub Comments

24reactions
godenjicommented, Oct 6, 2017

Oh, as per @jkleckner gist we can add a helper sbt file to global root; in my case ~/.sbt/1.0/sbt-coursier.sbt with the following:

import coursier.Keys._
classpathTypes += "maven-plugin"
20reactions
alexarchambaultcommented, May 18, 2017

Good news everyone, there’s an easy workaround 😀: adding the following to project/plugins.sbt:

classpathTypes += "maven-plugin"

That’s currently necessary, as the POM of org.vafer:jdeb:1.2 specifies it has a packaging maven-plugin. So coursier gives its JAR the type maven-plugin (instead of the default jar). This type then lands in the update report, and sbt happily ignores the artifact with type maven-plugin (it only keeps the types in the classpathTypes setting). Thus jdeb is missing from the classpath, hence the error you’re getting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I solve "java.lang.NoClassDefFoundError"?
The NoClassDefFoundError indicates that the classloader (in this case java.net.URLClassLoader ), which is responsible for dynamically loading classes, ...
Read more >
How to Resolve the NoClassDefFoundError in Java - Rollbar
NoClassDefFoundError is a Java error that occurs when the JVM is unable to find a class at runtime which was available at compile-time....
Read more >
3 ways to solve java.lang.NoClassDefFoundError in Java J2EE
ClassNotFoundException comes when JVM tries to load a class at runtime dynamically means you give the name of the class at runtime and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found