ClassNotFoundException

Hello.
I am trying to create project according to Getting started guide but I got some problems.

When I try to run project I am getting error:

/usr/lib/jvm/java-6-sun/bin/java -Didea.launcher.port=7534 -Didea.launcher.bin.path=/home/smix/Software/idea-IC-95.66/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/alt-rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/javaws.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/management-agent.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/deploy.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/plugin.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/ext/localedata.jar:/home/smix/IdeaProjects/untitled/out/production/untitled:/home/smix/IdeaProjects/untitled/lib/scala-compiler.jar:/home/smix/IdeaProjects/untitled/lib/scala-library.jar:/home/smix/Software/idea-IC-95.66/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain HelloWorld Exception in thread "main" java.lang.ClassNotFoundException: HelloWorld      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:307)      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)      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:107) Process finished with exit code 1



Idea 9.0.2, latest scala plugin

4 comments
Comment actions Permalink

Problem is that plugin writes `package` at start of HelloWorld object file.

0
Comment actions Permalink

What kind of `package` does it write? What exactly does it write?

Best regards,
Alexander Podkhlayuzin.

0
Comment actions Permalink

I'm guessing what they mean is that if you create a scala class in the top level source directory, it doesn't have a package but the package keyword is still put in the file.

Nick.

0
Comment actions Permalink

Ok, thank you, it's a bug. http://youtrack.jetbrains.net/issue/SCL-2230

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.