Cannot Run Play Framework Project on Netbeans 7.2 IDE

旧城冷巷雨未停 提交于 2019-12-23 01:37:18

问题


I have a working Play Framework project. I'm using Play Framework version number 1.2.5 and Java version 1.7 update 5. I have been used play netbeansify command on terminal and successfully load the project.

But then, when I tried to run the project its failed to RUN and Netbeans console show error like this:

C:\play-1.2.5\id doesn't exist
Listening for transport dt_socket at address: 8099
Error: Could not find or load main class ${jvm.memory}
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)

I have tried to replace Play Framework version number 1.2.5 to 1.2.4 and I use play netbeansify command again. Then, when I tried running the project, its RUNNING.

Is Netbeans 7.2 IDE doesn't support Play Framework version number 1.2.5? Or I forgot the step to import project in Netbeans?

-- EDIT 1

For specification detail I'm using Windows 7 32-bit Operating System, Java 7 update 5 32-bit version, and Netbeans 7.2 32-bit version.


回答1:


Add the following to the application.conf file:

jvm.memory=-Xmx256M -Xms32M

You can tune to your liking, but this should be a basic setting.

Matt




回答2:


I'm running on 1.2.2. When change from Netbeans 7.1.1 to 7.2, there's no problem. I even don't have to do any additional step, just install Netbeans 7.2, it will automatically import 7.1.1 configurations, then hit RUN and it works.

Have not tried the play!framework 1.2.5 yet.



来源:https://stackoverflow.com/questions/11683802/cannot-run-play-framework-project-on-netbeans-7-2-ide

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