Error starting fresh play 2.1 project

五迷三道 提交于 2019-12-23 07:55:31

问题


I am using play framework 2.1.0, I have created fresh project using command play new myfirstapp, then I selected 2 option to create simple java project and thus it created project

Now when I start play by command play run I get following output

C:\development\application\firstApp\helloworld>play run
[info] Loading project definition from C:\development\application\firstApp\helloworld\project
[info] Set current project to helloworld (in build file:/C:/development/application/firstApp/helloworld/)


Cannot load the JNotify native library (C:\development\Play%20framework\repository\local\net.contentobjects.jnotify\jnotify\0.94\jars\jnotify.jar (The system cannot find the file specified))
Play will check file changes for each request, so expect degraded reloading performace.

--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console...)

Now when I hit localhost:9000 it gives me following exception on web browser

please find the image here:

It has become bottle neck for me to go further, kindly help me out with this problem. Some more information about my workstation

  • Its windows 8 64 bit
  • JDK 7

回答1:


You should try to put Play in a path without space (C:\development\playframework).

Play2 + windows + spaces are not good friends ;)




回答2:


Open IIS by going to the start menu and writing IIS (INTERNET INFORMATION SERVICE), stop the service and then refresh the page (F5).



来源:https://stackoverflow.com/questions/15039362/error-starting-fresh-play-2-1-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!