2

我正在玩游戏框架,这似乎很好。当我在 Mac 10.6.8 java 版本 1.6_29 上启动示例应用程序时,我收到以下错误:啊!我也尝试了openjdk 1.7,但同样的错误。请。帮助我尝试了 2 天但没有成功。我在linux机器上托盘,一切都很好,但我的开发机器是os x Thks。泽弗

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)
4

2 回答 2

1

你的依赖有问题试试

依赖项.yml

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

如果它给您带来任何问题,请尝试

   - net.sf.jasperreports -> jasperreports 4.6.0:
            transitive: false
于 2012-11-21T14:25:11.190 回答
0

如果您从 Eclipse 运行,请尝试在您的项目上重新运行play eclipsify命令,然后将其从 Eclipse 中删除并重新导入。

于 2012-01-02T13:19:44.940 回答