scala-2.10.3 -cp ScalaLab211Nov04.jar panics on import scalaSci.EJML.StaticMathsEJML._

9 views
Skip to first unread message

dREPLACEeLETTEReEjBYeLETTEReAatGMA ILcom

unread,
Nov 5, 2013, 6:02:57 AM11/5/13
to scalalab-...@googlegroups.com
Here below is a bug. What should I do ? use previous version of Scala ? of Scalalab ?

cd ~
md5sum scala-2.10.3/bin/scala ScalaLab211Nov04/ScalaLab211.jar
e69d32a11a8aea4e17d6840d3cb68b9a  scala-2.10.3/bin/scala
2536456664f3a33d05195a4cf0764b53  ScalaLab211Nov04/ScalaLab211.jar
uname -a
Linux francis-HP 3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 09:20:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
scala-2.10.3/bin/scala -classpath ScalaLab211Nov04/ScalaLab211.jar
Welcome to Scala version 2.10.3 (OpenJDK 64-Bit Server VM, Java 1.6.0_27).
Type in expressions to have them evaluated.
Type :help for more information.

scala>  import scalaSci.EJML.StaticMathsEJML._
import scalaSci.EJML.StaticMathsEJML._

scala> 2
scala.reflect.internal.Types$TypeError: bad symbolic reference. A signature in Vec.class refers to term matrix
in value <root>.cipr which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling Vec.class.
        at scala.reflect.internal.pickling.UnPickler$Scan.toTypeError(UnPickler.scala:847)
        at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef.complete(UnPickler.scala:854)
        at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef.load(UnPickler.scala:863)
    [snip see attached file for complete stack trace]
        at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:96)
        at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:105)
        at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

That entry seems to have slain the compiler.  Shall I replay
your session? I can re-run each line except the last one.

Stergios Papadimitriou

unread,
Nov 5, 2013, 6:10:04 AM11/5/13
to scalalab-...@googlegroups.com

It seems thet you use Java 6 of OpenJDK.

ScalaLab requires Java 7, I recommend to install the latest JDK 7 from
Oracle.

Regards
Stergios
> --
> You received this message because you are subscribed to the Google
> Groups "ScalaLab Scientific Programming Development group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to scalalab-dev-gr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

dREPLACEeLETTEReEjBYeLETTEReAatGMA ILcom

unread,
Nov 5, 2013, 8:22:23 AM11/5/13
to scalalab-...@googlegroups.com
> It seems thet you use Java 6 of OpenJDK.
>
> ScalaLab requires Java 7, I recommend to install the latest JDK 7 from Oracle.

The bug is also with Java 7 from Oracle, http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-x64.tar.gz that I just downloaded (notice the change in welcome line written by scala):

PATH=jdk1.7.0_45/bin:scala-2.10.3/bin:$PATH scala -classpath /home/goujot/ScalaLab211Nov04/ScalaLab211.jar                                                                                                                                                                                                
Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).

Type in expressions to have them evaluated.
Type :help for more information.

scala> import scalaSci.EJML.StaticMathsEJML._// attention, pas parfait !! 1+Mat fait n'importe quoi.

import scalaSci.EJML.StaticMathsEJML._

scala> 2
scala.reflect.internal.Types$TypeError: bad symbolic reference. A signature in Vec.class refers to term matrix
in value <root>.cipr which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling Vec.class.
[followed by exactly the same stack trace]

Le mardi 5 novembre 2013 12:10:04 UTC+1, Stergios Papadimitriou a écrit :


Regards
Stergios

Stergios Papadimitriou

unread,
Nov 5, 2013, 8:33:47 AM11/5/13
to scalalab-...@googlegroups.com

In order to run ScalaLab code from the Scala's console,
you need to put at the classpath many ScalaLab libraries,
these libraries are  enlisted within the MANIFEST.MF file of the ScalaLab211.jar

For your case, EJML matrix class of ScalaLab uses the functionality of ejml23.jar file,
is the implementation of Peter Abeles for the EJML library,
thus at least that file is required to be on the classpath.

Regards
Stergios


Στις 5/11/2013 3:22 μμ, ο/η dREPLACEeLETTEReEjBYeLETTEReAatGMA ILcom έγραψε:
> It seems thet you use Java 6 of OpenJDK.
>
> ScalaLab requires Java 7, I recommend to install the latest JDK 7 from Oracle.

The bug is also with Java 7 from Oracle, http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-x64.tar.gz that I just downloaded (notice the change in welcome line written by scala):

PATH=jdk1.7.0_45/bin:scala-2.10.3/bin:$PATH scala -classpath /home/goujot/ScalaLab211Nov04/ScalaLab211.jar                                                                                                                                                            !  &n bsp;                                  
Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import scalaSci.EJML.StaticMathsEJML._// attention, pas parfait !! 1+Mat fait n'importe quoi.
import scalaSci.EJML.StaticMathsEJML._

scala> 2
scala.reflect.internal.Types$TypeError: bad symbolic reference. A signature in Vec.class refers to term matrix
in value <root>.cipr which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling Vec.class.
[followed by exactly the same stack trace]

Le mardi 5 novembre 2013 12:10:04 UTC+1, Stergios Papadimitriou a écrit :


Regards
Stergios

Reply all
Reply to author
Forward
0 new messages