This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala interpreter failing after installation of scala-android.jar

1 reply
manojo
Joined: 2008-12-22,
User offline. Last seen 3 years 3 weeks ago.
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

akshaydashrath
Joined: 2009-11-01,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala interpreter failing after installation of scala-andro

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
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland