开发者

"Where is the framework?" error in Play! framework

开发者 https://www.devze.com 2023-02-04 14:58 出处:网络
I am new to using the Play! framework and was following the tutorial on their site and I got the following error in the console while trying to run the program.

I am new to using the Play! framework and was following the tutorial on their site and I got the following error in the console while trying to run the program.

~
~ play! 1.1, http://www.playframework.org
~
~ Ctrl+C to stop
~ 
Listening for transport dt_socket at address: 8000
Exception in thread "main" play.exceptions.UnexpectedException: Where is the framework ?
    at 开发者_StackOverflowplay.Play.init(Play.java:193)
    at play.server.Server.main(Server.java:131)
Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    at java.util.jar.JarFile.<init>(JarFile.java:150)
    at java.util.jar.JarFile.<init>(JarFile.java:87)
    at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:90)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:66)
    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:71)
    at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
    at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
    at java.net.URL.openStream(URL.java:1029)
    at play.Play.init(Play.java:178)
    ... 1 more

Could someone please figure out what the problem is and solution to solve this?


It looks like the play.jar file is corrupted (look at the root exception). Try to download it again, or run 'ant'.

EDIT:
Rename your Play! directory as Play. The ! symbol is used internally in jar URL pattern.


I would say... It doesn't find the framework.

Are you sure everything is well installed?

Do you have some env variables to set?

Some configuration files to set?

Cheers,

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号