Export to GitHub

scalalab - issue #9

Problems with ScalaLab and Mac


Posted on Aug 17, 2012 by Grumpy Hippo

What steps will reproduce the problem? 1. Download the .zip 2. unpack & navigate to the folder 3. run ./RunScalaLabLinux64.sh

What is the expected output? What do you see instead? Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) 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)

What version of the product are you using? On what operating system? Mac OS X v10.6.8 Java version 1.6.0_33

Please provide any additional information below. Hi, running ScalaLab perfectly on work Windows machine. Would love to get up and running on the Mac but can't get the code to compile. Is it a Java version thing?

Comment #1

Posted on Aug 18, 2012 by Helpful Rabbit

ScalaLab210 and ScalaLab292 require JDK 7, so you should install a JDK 7 compliant on Mac. ScalaLab282 perhaps can run with Java version 1.6.0_33.

Comment #2

Posted on Jun 14, 2013 by Helpful Wombat

Comment deleted

Comment #3

Posted on Jun 14, 2013 by Helpful Wombat

With the above explanation this should probably be in 'resolved' status. However (on OS X 10.8.4 and JDK 7.11):

$ ./RunScalaLabLinux64.sh fullJarPath = jar:file:/Users/asko/Sources/ScalaLab2102June12/ScalaLab210.jar scalalabJarName = = ScalaLab210.jar jarFilePath= = ScalaLab210.jar GlobalValues.scalalabLibPath = lib/ Exception trying to read scalalabUserPaths.txt $

Should I have a file named scalalabUserPaths.txt ?

Comment #4

Posted on Jun 14, 2013 by Helpful Wombat

By manually creating an empty file scalalabUserPaths.txt the command proceeds. And exits. I was expecting a GUI of some sort to pop up. Thanks for help.

Comment #5

Posted on Jul 8, 2013 by Quick Ox

face the same problem under Mac. Any solution yet? Thanks a lot.

Comment #6

Posted on Sep 21, 2013 by Swift Giraffe

I also have the same issues on a Mac

Mac OSX 10.7.5 Java 1.7.0_40

Here's what happens:

$ ./RunScalaLabLinux64.sh Full Path of the main ScalaLab .jar file = jar:file:/Users/primary/Desktop/Programming/ScalaLab/ScalaLab211.jar scalalabJarName = = ScalaLab211.jar Trying to load NR library [NROps.so] ... Current Path = /Users/primary/Desktop/Programming/ScalaLab $

it proceeds...then exits.

Any ideas?

Comment #7

Posted on Sep 21, 2013 by Swift Giraffe

Also, I try this on my Raspberry Pi running Java 1.8 SE Beta and get

"$ ./RunScalaLabLinux32.sh Java HotSpot(TM) Client VM warning: INFO: os::commit_memory(0x68c00000, 419430400, 0) failed; error='Cannot allocate memory' (errno=12) #

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 419430400 bytes for committing reserved memory.

An error report file with more information is saved as:

/home/pi/hs_err_pid3174.log"

anyone successfully get ScalaLab to run on either their Mac or Raspberry Pi? I really want to explore this program

Comment #8

Posted on Sep 21, 2013 by Swift Giraffe

Solved:

I used ScalaLab292July30.zip and ran ./RunScalaLab.sh

it launched on my Mac with no issues. Finally!

Comment #9

Posted on Nov 5, 2013 by Quick Horse

Hi,

I am using Mac OS X 10.9 Mavericks.

martin@~/Desktop/ScalaLab211M5Oct22$ java -version java version "1.7.0_12-ea" Java(TM) SE Runtime Environment (build 1.7.0_12-ea-b08) Java HotSpot(TM) 64-Bit Server VM (build 24.0-b28, mixed mode) martin@~/Desktop/ScalaLab211M5Oct22$ ./RunScalaLabLinux64.sh Full Path of the main ScalaLab .jar file = jar:file:/Users/martin/Desktop/ScalaLab211M5Oct22/ScalaLab211.jar scalalabJarName = = ScalaLab211.jar Trying to load NR library [NROps.so] ... Current Path = /Users/martin/Desktop/ScalaLab211M5Oct22

... but ScalaLab does not start

Comment #10

Posted on Nov 5, 2013 by Quick Horse

ScalaLab211June23 works, but ScalaLab211M5Oct22 and ScalaLab211Nov04 do not run on my Mac System.

Comment #11

Posted on Feb 26, 2015 by Helpful Rabbit

The new ScalaLabAllFeb26.zip should now work on Mac OS X, since I avoid to load missing native libraries.

It works?

Status: New

Labels:
Type-Defect Priority-Medium