Не запускается игра на Mac OS 10.10

Create issue
Issue #191 closed
Danil Biryukov-Romanov created an issue

Версия игры 0.4.0

При запуске через Finder (Двойным кликом по Aurora)

:~ urtow$ /Users/urtow/Games/Aurora-0.4.0/bin/Aurora ; exit; 22:53:51,349 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 22:53:51,350 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 22:53:51,350 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/Users/urtow/Games/Aurora-0.4.0/lib/Aurora-0.4.0.jar!/logback.xml] 22:53:51,352 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath. 22:53:51,353 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/Users/urtow/Games/Aurora-0.4.0/lib/Aurora-0.4.0.jar!/logback.xml] 22:53:51,353 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Users/urtow/Games/Aurora-0.4.0/bin/resources/logback.xml] 22:53:51,380 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@2a18f23c - URL [jar:file:/Users/urtow/Games/Aurora-0.4.0/lib/Aurora-0.4.0.jar!/logback.xml] is not of type file 22:53:51,512 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 22:53:51,525 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 22:53:51,538 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 22:53:51,607 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 22:53:51,731 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender] 22:53:51,734 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE] 22:53:51,745 |-WARN in ch.qos.logback.core.FileAppender[FILE] - This appender no longer admits a layout as a sub-component, set an encoder instead. 22:53:51,745 |-WARN in ch.qos.logback.core.FileAppender[FILE] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder. 22:53:51,745 |-WARN in ch.qos.logback.core.FileAppender[FILE] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details 22:53:51,746 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [aurora.log] 22:53:51,749 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [de.lessvoid.nifty] to WARN 22:53:51,749 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO 22:53:51,749 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 22:53:51,750 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT] 22:53:51,750 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 22:53:51,755 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@d7b1517 - Registering current configuration as safe fallback point

22:53:51.766 [main] INFO r.game.aurora.application.AuroraGame - Aurora game version 0.4.0 started 22:53:51.769 [main] INFO r.game.aurora.application.AuroraGame - Setting native lib dir to native/macosx 22:53:51.778 [main] ERROR r.game.aurora.application.AuroraGame - Failed to init game: org.newdawn.slick.SlickException: Failed to load game properties at ru.game.aurora.application.AuroraGame.main(AuroraGame.java:327) ~[Aurora-0.4.0.jar:na] java.io.FileNotFoundException: resources/game.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) ~[na:1.8.0_25] at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.8.0_25] at java.io.FileInputStream.<init>(FileInputStream.java:93) ~[na:1.8.0_25] at ru.game.aurora.application.Configuration.init(Configuration.java:30) ~[Aurora-0.4.0.jar:na] at ru.game.aurora.application.AuroraGame.main(AuroraGame.java:325) ~[Aurora-0.4.0.jar:na] Exception in thread "main" org.newdawn.slick.SlickException: Failed to load game properties at ru.game.aurora.application.AuroraGame.main(AuroraGame.java:327) Caused by: java.io.FileNotFoundException: resources/game.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:93) at ru.game.aurora.application.Configuration.init(Configuration.java:30) at ru.game.aurora.application.AuroraGame.main(AuroraGame.java:325) logout

[Процесс завершен

При запуске через консоль:

revenloft:bin urtow$ ./Aurora Exception in thread "main" java.lang.UnsupportedClassVersionError: ru/game/aurora/application/AuroraGame : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) 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)

Comments (2)

  1. Danil Biryukov-Romanov reporter

    Можно запустить через консоль.

    В Mac OS может выставится Java старой версии, так как по умолчанию установлена версия 1.6.

    Решение:

    Установить в ручную версию Java через переменную JAVA_HOME вот так:

    /usr/libexec/java_home -V

    Получаем вывод примерно вот такой: Matching Java Virtual Machines (3): 1.8.0_25, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home 1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 1.6.0_65-b14-466.1, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

    /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

    В домашней папке пользователя текстовым редактором в файл .bash_profile вносим следующую строку:

    export JAVA_HOME="$(/usr/libexec/java_home -v 1.8.0_25)"

    где после -v вставляем версию java

    После чего перезапускаем консоль и игра запускается

  2. Log in to comment