Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#34850 closed defect (fixed)

scala210 @0.0.2.10.0-M3_0 - No such file or directory when running scala-2.10

Reported by: paul@… Owned by: blair (Blair Zajac)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: brett@…
Port: scala210

Description

Paul-Butchers-MacBook-Pro:~ paul$ uname -a
Darwin Paul-Butchers-MacBook-Pro.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
Paul-Butchers-MacBook-Pro:~ paul$ sudo port installed | grep scala
  scala28 @2.8.1_1 (active)
  scala29 @2.9.0.1_0
  scala29 @2.9.1_0 (active)
  scala210 @0.0.2.10.0-M3_0 (active)
  scala_select @0.1_1
  scala_select @0.1_2 (active)
Paul-Butchers-MacBook-Pro:~ paul$ scala-2.10 
/opt/local/bin/scala-2.10: line 15: cd: ../share/scala-2.10/bin/..: No such file or directory
Exception in thread "main" java.lang.NoClassDefFoundError: scala/tools/nsc/MainGenericRunner
Caused by: java.lang.ClassNotFoundException: scala.tools.nsc.MainGenericRunner
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: brett@… added
Owner: changed from macports-tickets@… to blair@…

comment:2 Changed 12 years ago by blair (Blair Zajac)

Resolution: fixed
Status: newclosed

This is an issue with the shell scripts in the upstream tarball, see https://issues.scala-lang.org/browse/SI-5792 . The new M4 release which I just updated to in r94279 fixes this.

comment:3 Changed 12 years ago by blair (Blair Zajac)

BTW, you can use port installed \*scala\* instead of the grep and don't need to be root to run it.

Note: See TracTickets for help on using tickets.