问题描述
我有一个有效的Play Framework项目。我正在使用Play Framework版本号 1.2.5 和Java版 1.7 update 5 。我已在终端上使用 play netbeansify
命令并成功加载项目。
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.
但是,当我尝试运行项目失败的RUN和Netbeans控制台显示如下错误:
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)
我试图取代Play Framework版本号 1.2。 5 到 1.2.4 ,我再次使用播放netbeansify
命令。然后,当我尝试运行项目时,它正在运行。
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.
Netbeans 7.2 IDE是否不支持Play Framework版本号 1.2.5 ?或者我忘记了在Netbeans中导入项目的步骤了?
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?
- 编辑1
对于规范细节,我使用的是Windows 7 32位操作系统,Java 7更新5 32位版本和Netbeans 7.2 32位版本。
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.
推荐答案
将以下内容添加到application.conf文件中:
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.
马特
这篇关于无法在Netbeans 7.2 IDE上运行Play Framework项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!