简体   繁体   English

播放项目无法在Netbeans中运行

[英]play project fail to run in the Netbeans

this question is similiar to another question(http://stackoverflow.com/questions/11683802/cannot-run-play-framework-project-on-netbeans-7-2-ide) 这个问题与另一个问题类似(http://stackoverflow.com/questions/11683802/cannot-run-play-framework-project-on-netbeans-7-2-ide)

When I use play-1.2.5, my project fail to run in Netbeans 7. But when I change the play version to 1.2.4,it run success. 当我使用play-1.2.5时,我的项目无法在Netbeans 7中运行。但是当我将play版本更改为1.2.4时,它运行成功。

Here is the Exception when I run the project in netbenas 7 with play-1.2.5 framework 当我使用play-1.2.5框架在netbenas 7中运行项目时,这是例外

E:\play-1.2.5\id doesn't exist
Listening for transport dt_socket at address: 8000
java.lang.NoClassDefFoundError: ${jvm/memory}
Caused by: java.lang.ClassNotFoundException: ${jvm.memory}
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ${jvm.memory}.  Program will exit.
Exception in thread "main" Java Result: 1

add this to your application.conf 将此添加到您的application.conf

jvm.memory=-Xmx256M jvm.memory = -Xmx256M

尝试增加JVM的堆大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM