New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load Java Runtime Environment on OSX El Capitan #99

Closed
dbogdanov opened this Issue Feb 24, 2016 · 15 comments

Comments

Projects
None yet
3 participants
@dbogdanov

dbogdanov commented Feb 24, 2016

I've installed Java 8 following this guide.

java -version
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

trolCommander fails on startup with the error: "Unable to load Java Runtime Environment".

My older version of muCommander runs fine.

@trol73

This comment has been minimized.

Show comment
Hide comment
@trol73

trol73 Feb 24, 2016

Owner

Can you try to run trolCommander.jar from command line?

java -jar trolCommander.jar

Owner

trol73 commented Feb 24, 2016

Can you try to run trolCommander.jar from command line?

java -jar trolCommander.jar

@dbogdanov

This comment has been minimized.

Show comment
Hide comment
@dbogdanov

dbogdanov Feb 25, 2016

Actually, it runs successfully when I run this command from Contents/Java folder. Running the app fails.

dbogdanov commented Feb 25, 2016

Actually, it runs successfully when I run this command from Contents/Java folder. Running the app fails.

@twox

This comment has been minimized.

Show comment
Hide comment
@twox

twox Apr 11, 2016

I have same problem.
Result of command: java -jar trolCommander.jar

$java -jar trolCommander.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/mucommander/TrolCommander : Unsupported major.minor version 52.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)

twox commented Apr 11, 2016

I have same problem.
Result of command: java -jar trolCommander.jar

$java -jar trolCommander.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/mucommander/TrolCommander : Unsupported major.minor version 52.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)

@trol73

This comment has been minimized.

Show comment
Hide comment
@trol73

trol73 Apr 11, 2016

Owner

Wrong Java Runtime version, trolCommander required Java 8

Owner

trol73 commented Apr 11, 2016

Wrong Java Runtime version, trolCommander required Java 8

@twox

This comment has been minimized.

Show comment
Hide comment
@twox

twox commented Apr 11, 2016

After update Java from http://www.oracle.com/technetwork/java/javase/downloads/index.html, works fine
Thanks!

@dbogdanov

This comment has been minimized.

Show comment
Hide comment
@dbogdanov

dbogdanov Apr 11, 2016

What is the reason that the application runs fine from the terminal, but fails to lunch from Applications menu?

dbogdanov commented Apr 11, 2016

What is the reason that the application runs fine from the terminal, but fails to lunch from Applications menu?

@twox

This comment has been minimized.

Show comment
Hide comment
@twox

twox Apr 11, 2016

Try to run app from package:

admin$ cd /Applications/trolCommander.app/Contents/Java
iMac-admin:Java admin$ java -jar trolCommander.jar

twox commented Apr 11, 2016

Try to run app from package:

admin$ cd /Applications/trolCommander.app/Contents/Java
iMac-admin:Java admin$ java -jar trolCommander.jar
@dbogdanov

This comment has been minimized.

Show comment
Hide comment
@dbogdanov

dbogdanov Apr 11, 2016

This works fine, but i can't run it without using console.

dbogdanov commented Apr 11, 2016

This works fine, but i can't run it without using console.

@twox

This comment has been minimized.

Show comment
Hide comment
@twox

twox Apr 11, 2016

А что пишет в консоли сообщений системы?
Какие ошибки туда лезут?

twox commented Apr 11, 2016

А что пишет в консоли сообщений системы?
Какие ошибки туда лезут?

@dbogdanov

This comment has been minimized.

Show comment
Hide comment
@dbogdanov

dbogdanov Apr 11, 2016

(com.mucommander.trolCommander.424992[788]) Service exited with abnormal code: 1

dbogdanov commented Apr 11, 2016

(com.mucommander.trolCommander.424992[788]) Service exited with abnormal code: 1
@twox

This comment has been minimized.

Show comment
Hide comment
@twox

twox Apr 11, 2016

И это весь лог, странно?
Что выдают команды в терминале?: $ which java
и $ echo $PATH

twox commented Apr 11, 2016

И это весь лог, странно?
Что выдают команды в терминале?: $ which java
и $ echo $PATH

@dbogdanov

This comment has been minimized.

Show comment
Hide comment
@dbogdanov

dbogdanov Apr 11, 2016

which java
/usr/bin/java

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

dbogdanov commented Apr 11, 2016

which java
/usr/bin/java

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
@twox

This comment has been minimized.

Show comment
Hide comment
@twox

twox Apr 11, 2016

Странная ситуация.
Окружение вроде доступно и путь верный.
Пробовал ставить java по ссылке из пакета? http://www.oracle.com/technetwork/java/javase/downloads/index.html
Проверь права доступа и действия антивируса, если стоит...

twox commented Apr 11, 2016

Странная ситуация.
Окружение вроде доступно и путь верный.
Пробовал ставить java по ссылке из пакета? http://www.oracle.com/technetwork/java/javase/downloads/index.html
Проверь права доступа и действия антивируса, если стоит...

@trol73

This comment has been minimized.

Show comment
Hide comment
@trol73

trol73 Apr 11, 2016

Owner

Такое ощущение, что MacOS использует какую-то свою JRE и берёт её не из $PATH ..

Owner

trol73 commented Apr 11, 2016

Такое ощущение, что MacOS использует какую-то свою JRE и берёт её не из $PATH ..

@dbogdanov

This comment has been minimized.

Show comment
Hide comment
@dbogdanov

dbogdanov Oct 19, 2016

Поставил на другую свежую систему (MacOS Sierra), все работает.

dbogdanov commented Oct 19, 2016

Поставил на другую свежую систему (MacOS Sierra), все работает.

@dbogdanov dbogdanov closed this Oct 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment