gpt4 book ai didi

java - play项目在Netbeans中运行失败

转载 作者:行者123 更新时间:2023-12-01 06:19:57 25 4
gpt4 key购买 nike

这个问题与另一个问题类似(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时,它运行成功。

这是我在 netbenas 7 中使用 play-1.2.5 框架运行项目时出现的异常

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

最佳答案

将其添加到您的 application.conf

jvm.内存=-Xmx256M

关于java - play项目在Netbeans中运行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11788740/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com