sbt error: java.lang.NoSuchMethodError: sbt.classpath.ClasspathUtilities$.isArchive$default$2()Z

127 views
Skip to first unread message

Michael Clark

unread,
Sep 16, 2013, 10:57:30 PM9/16/13
to scala-i...@googlegroups.com
I'm trying to set up scala in eclipse 4.3 using scala 2.10.0-1, sbt 0.13.0-1, and scala ide 3.0.1-1.  I'm running arch linux, and I've installed scala, sbt, and eclipse from the arch core repos and scala ide from the user repo.

I get the following error when trying to compile a simple HelloWorld app.

java.lang.NoSuchMethodError: sbt.classpath.ClasspathUtilities$.isArchive$default$2()Z

The full stack trace is:

2013-09-16 20:58:35,240 ERROR [main] - org.scala-ide.sdt.core - org.scala-ide.sdt.core - org.scala-ide.sdt.core - 0 - Error in Scala compiler
java.lang.NoSuchMethodError: sbt.classpath.ClasspathUtilities$.isArchive$default$2()Z
at scala.tools.eclipse.buildmanager.sbtintegration.Locator$.apply(SbtInputs.scala:88)
at scala.tools.eclipse.buildmanager.sbtintegration.SbtInputs$$anon$2.definesClass(SbtInputs.scala:21)
at sbt.compiler.IC$$anonfun$2.apply(IncrementalCompiler.scala:19)
at sbt.compiler.IC$$anonfun$2.apply(IncrementalCompiler.scala:19)
at sbt.inc.Locate$$anonfun$2.apply(Locate.scala:38)
at sbt.inc.Locate$$anonfun$2.apply(Locate.scala:38)
at scala.collection.immutable.Stream.map(Stream.scala:376)
at sbt.inc.Locate$.entry(Locate.scala:38)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:58)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:44)
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:31)
at sbt.compiler.IC$.compile(IncrementalCompiler.scala:20)
at scala.tools.eclipse.buildmanager.sbtintegration.EclipseSbtBuildManager.runCompiler(EclipseSbtBuildManager.scala:133)
at scala.tools.eclipse.buildmanager.sbtintegration.EclipseSbtBuildManager.update(EclipseSbtBuildManager.scala:123)
at scala.tools.eclipse.buildmanager.sbtintegration.EclipseSbtBuildManager.build(EclipseSbtBuildManager.scala:178)
at scala.tools.eclipse.ScalaProject.build(ScalaProject.scala:664)
at scala.tools.eclipse.ScalaBuilder.build(ScalaBuilder.scala:119)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:726)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)


I have almost no experience in eclipse, so I'm having trouble figuring out what the next steps for debugging this issue is.  Should I try installing the 4.0 nightly build?

Jan van der Vorst

unread,
Sep 17, 2013, 5:53:10 AM9/17/13
to scala-i...@googlegroups.com
If you are an adventurer you could go for the nighties.
If you are looking for a functioning scala-ide I would advice to try one of the stable configurations as depicted on http://scala-ide.org/download/current.html (eclipse 4.3 is not listed among them)

good luck!

Michael Clark

unread,
Sep 17, 2013, 9:29:54 AM9/17/13
to scala-i...@googlegroups.com
Thanks for the response.

In the end I just uninstalled all of the packages I installed from arch, and downloaded the eclipse 3.7 / scala ide 3.0.1 bundle straight from the website. Worked like a charm!  

Mirco Dotta

unread,
Sep 24, 2013, 10:47:07 AM9/24/13
to scala-i...@googlegroups.com
Hi Michael,

Good to hear things are working properly now. The error you reported is a binary incompatibility, did you build the IDE yourself when that occur?

-- Mirco

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


---------------
Mirco Dotta
PSE-D, 1015 Lausanne, Switzerland
Twitter: @mircodotta


Reply all
Reply to author
Forward
0 new messages