jeremieSimon / scalalab

Automatically exported from code.google.com/p/scalalab
0 stars 0 forks source link

Get Started with Scalalab #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to get started with Scalalab. After installation on Wndows 7 
machine 64, and when I first open RunScalaLabWin64.bat the folowing message is 
displayed:

JAMA  Interpreter - Minimal Imports

Failed to initialize compiler: object scala.runtime in compiler mirror not 
found.
** Note that as of 2.8 scala does not assume use of the java classpath.
** For the old behavior pass -usejavacp to scala, or if using a Settings
** object programatically, settings.usejavacp.value = true.

I use 210 version of ScalaLab and JDK 7.

Any help?

Thanks

Original issue reported on code.google.com by mohameda...@gmail.com on 24 Jan 2013 at 2:04

GoogleCodeExporter commented 9 years ago
Hi, 

THE MOST PROBABLE SOLUTION: 
At the particular script RunScalaLabWin64.bat, sorry, I forgot
to change the separator : (Linux) to ; (Windows)

So please, edit the script to:

java -client  
-Djava.library.path=./libBLAS/static/Windows/amd64;/libJava3D/WinAMD64/ -Xss5m 
-Xms1000m -Xmx1200m -jar ScalaLab210.jar

NOT SO PROBABLE: 
I think the above should solve the problem, 
but if not so (and the other Windows script fail) then it will be an 
installation problem.  So, at this case, you should try  to re-installing Java 
7, and 
after that re-installing ScalaLab210 at a fresh directory.

Please inform me, on what happened!!

Stergios

Original comment by st...@teikav.edu.gr on 26 Jan 2013 at 4:33

GoogleCodeExporter commented 9 years ago
Hi Stergios,

The first solution did not work. I even tried on a different Windows
machine with similar configurations and got the same error.

Did not try to make again a new installation, but meantime I am wondering
if it requires to install scala?
As a play, I added to the specific generated file "scalalabUserPaths" the
path of scala-compiler.jar (and few other jars containing the name of scala
and stored in the lib folder) and the message was removed.

However I got different errors (please look down).

<console>:11: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.math.plot.plot._;
                     ^
<console>:12: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.math.plot.plotTypes._;
                     ^
<console>:13: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.math.plot.PlotFunctional._;
                      ^
<console>:14: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.math.plot.namedPlotsObj._;
                     ^
<console>:15: error: object jzy3dPlot is not a member of package <root>
       import _root_.jzy3dPlot.jzy3dPlot;
                     ^
<console>:16: error: object jzy3dPlot is not a member of package <root>
       import _root_.jzy3dPlot.jzy3dPlot._;
                     ^
<console>:17: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.StaticScalaSciGlobalExt ;
                     ^
<console>:18: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.Vec ;
                      ^
<console>:19: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.Vec._ ;
                      ^
<console>:20: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.Matrix ;
                      ^
<console>:21: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.Matrix._ ;
                     ^
<console>:22: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.RichNumber;
                     ^
<console>:23: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.RichDoubleDoubleArray;
                      ^
<console>:24: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.RichDoubleDoubleArray._;
                      ^
<console>:25: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.RichDoubleArray ;
                      ^
<console>:26: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.RichDoubleArray._ ;
                      ^
<console>:27: error: object scalaSci is not a member of package <root>
        import _root_.scalaSci.Complex;
                      ^
<console>:28: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.Complex._;
                     ^
<console>:29: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.Sparse;
                     ^
<console>:30: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.Sparse._ ;
                     ^
<console>:31: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.CCMatrix ;
                     ^
<console>:32: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.CCMatrix._ ;
                     ^
<console>:33: error: object scalaExec is not a member of package <root>
       import  _root_.scalaExec.Interpreter.importHelper._;
                      ^
<console>:34: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.JBLAS.JBLASNativeJavaInterface._
                     ^
<console>:35: error: object scalaSciCommands is not a member of package
<root>
       import  _root_.scalaSciCommands.BasicCommands
                      ^
<console>:36: error: object scalaSciCommands is not a member of package
<root>
         import  _root_.scalaSciCommands.BasicCommands._;
                        ^
<console>:37: error: object scalaSciCommands is not a member of package
<root>
         import _root_.scalaSciCommands.FileOps
                       ^
<console>:38: error: object scalaSciCommands is not a member of package
<root>
       import _root_.scalaSciCommands.FileOps._
                     ^
<console>:39: error: object scalaSci is not a member of package <root>
       import  _root_.scalaSci.Bench.bench
                      ^
<console>:40: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.ILapack._
                     ^
<console>:41: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.math.array.StatisticSample
                     ^
<console>:42: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.math.array.StatisticSample._
                     ^
<console>:43: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.Mat ;
                     ^
<console>:44: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.Mat._ ;
                     ^
<console>:45: error: object scalaSci is not a member of package <root>
       import _root_.scalaSci.StaticMaths._ ;

Original comment by mohameda...@gmail.com on 31 Jan 2013 at 1:47

GoogleCodeExporter commented 9 years ago
Hi,

ScalaLab does not require an installation of Scala,
but the correct installation of JDK 7 is important.

So, with the correct installation of JDK 7, it should be run
directly with the RunScalaLabServerJVMWin64.bat script.

Also, please make sure that the folder name that you unzip ScalaLab does not 
contain spaces or strange characters, since ScalaLab tries to construct the 
absolute paths of some .jar files, and strange path names can cause problems.

Stergios

Original comment by st...@teikav.edu.gr on 1 Feb 2013 at 7:48

GoogleCodeExporter commented 9 years ago
Hi Sergio,

Thanks for the hint. It works fine now. The folder Name contains space in
fact :(

Original comment by mohameda...@gmail.com on 1 Feb 2013 at 9:46