这个问题类似于另一个问题(http://stackoverflow.com/questions/11683802/cannot-run-play-framework-project-on-netbeans-7-2-ide)
当我使用play-1.2.5时,我的项目无法在Netbeans 7中运行。 但是当我将播放版本更改为1.2.4时,它会成功运行。
当我使用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
答案 0 :(得分:0)
将此添加到您的application.conf
jvm.memory = -Xmx256M
答案 1 :(得分:-1)
尝试增加JVM的堆大小。