dcaoyuan / nbscala

NetBeans Plugin for Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The nbscala plugin does not work with Netbeans 7.3

amanjpro opened this issue · comments

Hello,

I am trying to install Scala for Netbeans plugin, and when I install it I get the following error:

org.netbeans.InvalidException: StandardModule:org.netbeans.modules.scala.stdplatform jarFile: 
/Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/nbscala/modules/org-netbeans-modules-
scala-stdplatform.jar: java.lang.UnsupportedClassVersionError: 
org/netbeans/modules/scala/stdplatform/J2SEPlatformModule : Unsupported major.minor version 51.0

I have:

  • Netbeans 7.3
  • Scala 2.10
  • JDK 7
  • Mac OSX Mountain Leon
  • The final "stable" version of the plugin

And I have already removed the nbsfolder in the Netbeans application directory.

BTW, everything goes well until the progress reaches 94% during sbt installation.

Regards,
Amanj

Where did you download the plugin? It seems you've been using JDK 7, so that's really weird. Take a look at your NetBeans log file: ~/Library/Application Support/NetBeans/7.3/var/log/message.log to make sure the NetBeans is starting upon JDK 7.0

Thanks a lot for the tip, exactly the problem was with the JDK version!

Finally fixed by setting "target" to 1.6 in pom.xml