Play框架不能在os x mac上启动



我正在玩游戏框架,这似乎很好。当我在Mac 10.6.8 java版本1.6_29上启动示例应用程序时,我收到以下错误:啊!我也尝试过使用openjdk 1.7,但同样的错误。请帮助我,我试了2天没有成功。我在linux机器上进行测试,一切正常,但我的开发机器是os x呢?。•艾克塞瓦•

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)

你的依赖项之间有问题

dependencies.yml

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

如果有任何问题请尝试

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

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

最新更新