gpt4 book ai didi

macos - Play 框架无法在 os x mac 上启动

转载 作者:行者123 更新时间:2023-11-30 11:48:37 26 4
gpt4 key购买 nike

我正在玩 play 框架,看起来还不错。当我在 Mac 10.6.8 java 版本 1.6_29 上启动示例应用程序时,我收到以下错误:啊!我也尝试了 openjdk 1.7,但同样的错误。请。帮助我尝试了 2 天但没有成功。我在 linux 机器上运行,一切正常,但我的开发机器是 os x谢谢。Xaver

Listening for transport dt_socket at address: 8000
12:33:13,841 INFO ~ Starting /Users/xaver/Documents/play-1.2.4/samples-and-tests/yabe
12:33:13,845 WARN ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.crud)
12:33:13,859 INFO ~ Module crud is available (/usr/local/Cellar/play/1.2.4/libexec/modules/crud)
12:33:13,859 WARN ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.secure)
12:33:13,860 INFO ~ Module secure is available (/usr/local/Cellar/play/1.2.4/libexec/modules/secure)
Exception in thread "main" java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.CompilationResult.getErrors()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:238)
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:484)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:346)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:282)
at play.classloading.ApplicationClasses$ApplicationClass.compile(ApplicationClasses.java:277)
at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:164)
at play.classloading.ApplicationClassloader.loadClass(ApplicationClassloader.java:84)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at play.plugins.PluginCollection.loadPlugins(PluginCollection.java:158)
at play.Play.init(Play.java:294)
at play.server.Server.main(Server.java:158)

最佳答案

你的依赖有问题试试看

依赖.yml

   - net.sf.jasperreports -> jasperreports 4.6.0:
exclude :
- eclipse -> *

如果它给你带来任何问题试试

   - net.sf.jasperreports -> jasperreports 4.6.0:
transitive: false

关于macos - Play 框架无法在 os x mac 上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8700518/

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