Bad class file error when using Scala 2.8.0-rc1 in Javafx 1.2

Posted by aoprisan on Stack Overflow See other posts from Stack Overflow or by aoprisan
Published on 2010-04-16T07:41:08Z Indexed on 2010/04/16 7:43 UTC
Read the original article Hit count: 184

Filed under:
|

When trying to import scala.Option in a javafx script, I get the following javafxc error:

bad class file: scala/Option$$anonfun$orNull$1.class(scala:Option$$anonfun$orNull$1.class)
undeclared type variable: A1
Please remove or make sure it appears in the correct subdirectory of the classpath.
import scala.Option;
             ^

I am using Scala 2.8.0-RC1, Javafxc 1.2.3_b36, JVM 1.6.0_18-b07, OS Ubuntu 9.10. The same code was working in Scala 2.7.7 .

© Stack Overflow or respective owner

Related posts about scala

Related posts about javafx