Cannot Run Play Framework Project on Netbeans 7.2

2019-06-07 23:24发布

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.

2条回答
一纸荒年 Trace。
2楼-- · 2019-06-07 23:42

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.

查看更多
仙女界的扛把子
3楼-- · 2019-06-07 23:57

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

查看更多
登录 后发表回答