Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play framework error java.lang.NoSuchMethodError when executing play run

I always get this exception when running command: play run

Listening for transport dt_socket at address: 8000
12:53:46,970 INFO  ~ Starting D:\Study\Scala\app1
12:53:46,991 INFO  ~ Module scala is available (D:\Study\Scala\play-1.1.2\module
s\scala-0.9.1)
Exception in thread "main" java.lang.NoSuchMethodError: play.data.binding.Binder
.register(Ljava/lang/Class;Lplay/data/binding/TypeBinder;)V
        at play.scalasupport.ScalaPlugin.onLoad(ScalaPlugin.scala:27)
        at play.Play.loadPlugins(Play.java:587)
        at play.Play.init(Play.java:268)
        at play.server.Server.main(Server.java:131)

Note: I installed my scala module by downloading the file scala-0.9.1.zip from the website and copy it to \play-1.1.2\modules\, I did so because we have proxy in my company computer, I failed to install the scala module by running play install scala

I am using Windows7 and java 1.6. Any help is appreciated!

like image 350
Wint Avatar asked Mar 19 '26 00:03

Wint


1 Answers

Scala 0.9.1 requires Play 1.2.2 or newer, that's why it's failing

like image 123
Pere Villega Avatar answered Mar 21 '26 02:03

Pere Villega



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!