Scala interpreter failing after installation of scala-android.jar

View: New views
2 Messages — Rating Filter:   Alert me  

Scala interpreter failing after installation of scala-android.jar

by Manohar Jonnalagedda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

just wanted to verify if other people have this bug (or whether it has already been seen in this variant) :

I go the $SCALA_HOME/bin folder, and type

> sbaz install scala-android

which it duly does (I have a new jar in the lib folder)

I then try to run

> scala
Exception in thread "main" java.lang.VerifyError: (class: scala/tools/nsc/MainGenericRunner$, method: main signature: ([Ljava/lang/String;)V) Can only throw Throwable objects
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

As soon as I remove the installed jar, it works again.

Cheers,
Manohar


Re: Scala interpreter failing after installation of scala-android.jar

by akshaydashrath :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey Manohar,

I've got Scala working on Android through eclipse and have prepared a guide http://www.novoda.com/blog/ as I was facing the same problem you were.

Regards,
Akshay
Manohar Jonnalagedda wrote:
Hello all,

just wanted to verify if other people have this bug (or whether it has
already been seen in this variant) :

I go the $SCALA_HOME/bin folder, and type

> sbaz install scala-android

which it duly does (I have a new jar in the lib folder)

I then try to run

> scala
Exception in thread "main" java.lang.VerifyError: (class:
scala/tools/nsc/MainGenericRunner$, method: main signature:
([Ljava/lang/String;)V) Can only throw Throwable objects
    at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

As soon as I remove the installed jar, it works again.

Cheers,
Manohar