I'm running Mac OS 10.6, Java 1.6_17, Scala 2.8.1 final. I'm attempting to make a simple Skype call using Skype4Java by doing the following:
$>export JAVA_OPTS=-d32
$>scala -classpath .:./skype/release/skype.jar
scala> com.skype.Skype.makeCall("echotest")
I'm getting the error
"invalid attempt to access memory at location 0x0 ... bus error".
Anybody else experience this and find a solution?
Note: I'm able to use this api perfectly fine by invoking one of the samples when I run it using command line java. Attempting to execute the same sample using command line scala fails with the error above.
object Test { def main(args:Array[String]) { ... } }
object syntax, compile and then run withscala -cp ... Test
. Also try withjava -cp ... Test
where scala-library.jar is added to the classpath. The REPL does certain things that may interfere with shared lib loading. – Majordomo