Java ME & Scala plugin

Hi,
I'm working on a Java ME project.Nothing related to scala, no facets configured.

Whenver I run "Build->Make" the scala plugin wants to run the scala compiler for unknown reason (which fails with some missing class errors).

Is there a way to fix this and without disabling the scala plugin?

Wallaby

0
7 comments

Hello.
Could you provide a little example of such J2ME project to reproduce this bug? It seems I fixed something similar in last revisions. Do you use last build?

With best regards,
Ilya

0

Ilya,
thanks for your reply.

I attached a sample project. I just created a new java me project and enabled the scala plugin again.I just executed the project make menu item.
I am using the latest version.

If you need more details let me know,
Wallaby



Attachment(s):
sample-me-app.zip
0

Yes, the same thing with my projects nothing related to Scala.

Tryings to build such a project are terminated with errors like these:

Error:Scalac internal error: class java.lang.ClassNotFoundException [java.net.URLClassLoader$1.run(URLClassLoader.java:200), java.security.AccessController.doPrivileged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.java:188), java.lang.ClassLoader.loadClass(ClassLoader.java:306), sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276), java.lang.ClassLoader.loadClass(ClassLoader.java:251), java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:169), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:73)]
Error:java.net.URLClassLoader$1.run(URLClassLoader.java:200)
Error:java.security.AccessController.doPrivileged(Native Method)
Error:java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Error:java.lang.ClassLoader.loadClass(ClassLoader.java:306)
Error:sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
Error:java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Error:java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Error:java.lang.Class.forName0(Native Method)
Error:java.lang.Class.forName(Class.java:169)
Error:org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:73)

But I found a workaround: File->Settings->Project Settings group->Compiler->Scala compiler->Turn "Compile Scala files first" OFF

0

Hello, Wallaby.

I've just made a possible bugfix and uploaded new plugin version to repository.
Happy New Year!

With best regards,
Ilya

0

Hi,
thanks for the workaround!
This way I can leave my scala plugin enabled.

Happy new year,
Wallaby

0

Hi Ilya,
thanks for the update!

I tested it and I still get the same error.
I can live with the workaround for now. So it's not that urgent.

Btw, thanks a lot for the work you're doing. I really appreciate it!

Happy new year!
Wallaby

0

Hello.
From next releases scala compiler don't work on J2ME modules, so it will not crash.

Best regards,
Alexander.

0

Please sign in to leave a comment.