这个问题类似于另一个问题(http://stackoverflow.com/questions/11683802/cannot-run-play-framework-project-on-netbeans-7-2-ide)
当我使用 play-1.2.5 时,我的项目无法在 Netbeans 7 中运行。但是当我将 play 版本更改为 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