简体   繁体   中英

Play framework doesnt start on os x mac

I'm playing with the play framework, which seems quite fine. When I tray to start a sample application On Mac 10.6.8 java version 1.6_29 I recive the following error: Ah! I tryed also whith the openjdk 1.7, but the same error. Pls. Help I'm trying for 2 day without success. I trayed on a linux machine and everything is fine, but my developpment machine is os x Thks. 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)

There is a problem between your dependencies try it

dependencies.yml

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

If it cause you any problem try

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM