#13571 closed defect (invalid)
scala @2.6.0: Invalid Java Classpath in sbaz wrapper
Reported by: | vincent@… | Owned by: | blair (Blair Zajac) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | Cc: | ||
Port: |
Description
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
Change History (5)
comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Milestone: | → Port Bugs |
---|
comment:2 Changed 17 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to blair@… |
---|
comment:3 Changed 17 years ago by blair (Blair Zajac)
Can you try with the latest scala install?
Also, next time please supply the command line arguments you
used to get the error. I don't use sbaz myself. I did try
running /opt/local-development/bin/sbaz
and it worked
with no errors.
Regards, Blair
comment:4 Changed 17 years ago by blair (Blair Zajac)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Closing due to lack of response.
Note: See
TracTickets for help on using
tickets.
Assigning to maintainer.