Class MainGenericRunner not found running scala script

I'm trying to run a scala script using the plugin v0.4.1453 and Scala 2.9.1 final.

This is the result:

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Denv.classpath="%CLASSPATH%" -Denv.emacs="%EMACS%" -Didea.launcher.port=7533 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 10.app/bin -Dfile.encoding=UTF-8 -classpath /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/deploy.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/alt-rt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/alt-string.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/charsets.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/classes.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/apple_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/dnsns.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/localedata.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunjce_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunpkcs11.jar:/Users/ryan/work/idea/mltools/out/test/zips:/Users/ryan/work/idea/mltools/out/production/zips:/Users/ryan/work/vendor/jts-1.12/lib/jts-1.12.jar:/Users/ryan/work/vendor/scala-2.9.1.final/lib/scala-library.jar:/Users/ryan/work/vendor/scala-2.9.1.final/lib/scala-swing.jar:/Users/ryan/work/vendor/scala-2.9.1.final/lib/scala-dbc.jar:/Applications/IntelliJ IDEA 10.app/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain scala.tools.nsc.MainGenericRunner -nocompdaemon -classpath  /Users/ryan/work/idea/zips/src/zips.scala Exception in thread "main" java.lang.ClassNotFoundException: scala.tools.nsc.MainGenericRunner      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)      at java.security.AccessController.doPrivileged(Native Method)      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)      at java.lang.Class.forName0(Native Method)      at java.lang.Class.forName(Class.java:169)      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:113) Process finished with exit code 1



I'm using the scala-compiler and scala-libraries generated by the plugin.

How do I get the script to run?
3 comments
Comment actions Permalink

I'll check your problem as soon as possible. You can watch issue: http://youtrack.jetbrains.net/issue/SCL-3688

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Note that the classpath is constructed from the .scala file (as opposed to .class). Not sure this is supported by the Scala runner, and almost definitely sure it's not supported by the Java runner.

0
Comment actions Permalink

This problem is fixed now.

0

Please sign in to leave a comment.