13

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.

Adrien Schuler
  • 2,395
  • 1
  • 21
  • 32
Jeb
  • 15,939
  • 6
  • 34
  • 37
  • Well, what's the simplest example available? There might just be something in it that you are missing with that example above. – Daniel C. Sobral May 19 '11 at 22:32
  • hmm, makeCall() is a pretty simple example. I could look for methods from the api that do less -- maybe just look at the contacts list or something. – Jeb May 22 '11 at 04:10
  • 1
    Try `object Test { def main(args:Array[String]) { ... } }` object syntax, compile and then run with `scala -cp ... Test`. Also try with `java -cp ... Test` where scala-library.jar is added to the classpath. The REPL does certain things that may interfere with shared lib loading. – huynhjl May 26 '11 at 07:23
  • Yeah, in my note above I said that I was able to run the sample successfully using command line java (was using -cp). Same applies for the simple example you've listed. – Jeb May 31 '11 at 03:37

1 Answers1

1

Try object Test { def main(args:Array[String]) { ... } }