#13571: scala @2.6.0: Invalid Java Classpath in sbaz wrapper -----------------------------------+---------------------------------------- Reporter: vincent@kraeutler.net | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.5.2 Keywords: | -----------------------------------+---------------------------------------- The default install of sbaz (from the scala darwinports package) failed on my machine with: {{{ Exception in thread "main" java.lang.NoClassDefFoundError: scala/ScalaObject at sbaz.clui.CommandLine.main(CommandLine.scala) }}} Reviewing the command line used to invoke java, one finds: {{{ java -Xmx256M -Xms16M -Xbootclasspath/a:/opt/local/share/scala/share/scala/lib/sbaz.jar:/opt/local/share/scala/share/scala/misc/sbaz /scala-library.jar -cp /opt/local/share/scala/share/scala/lib/sbaz- tests.jar:/opt/local/share/scala/share/scala/lib/sbaz.jar:/opt/local/share/scala/share/scala/lib /scala-compiler.jar:/opt/local/share/scala/share/scala/lib/scala- dbc.jar:/opt/local/share/scala/share/scala/lib/scala- decoder.jar:/opt/local/share/scala/share/scala/lib/scala-library.jar -Dscala.home=/opt/local/share/scala/share/scala -Denv.classpath=/opt/local/share/scala/share/scala/lib/scala- library.jar:/opt/local/share/scala/share/scala/lib/sbaz.jar sbaz.clui.CommandLine }}} Indeed, it looks for the scala base library in `/opt/local/share/scala/share/scala/misc/sbaz/scala-library.jar` which does not exist. An ad hoc fix consisted of supplying the following command line to be executed by the sbaz wrapper: {{{ java -Xmx256M -Xms16M -Dscala.home=/opt/local/share/scala/share/scala sbaz.clui.CommandLine }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13571> MacPorts </projects/macports> Ports system for Mac OS