I am trying to get around a problem having Java15 installed on my MacOS. I cannot launch LogMx since it is looking for a .dylib in the wrong place for Java15. So I edited the startup.conf JAVA_PATH to point to a Java8 JDK. I have used two paths since I was not exactly sure of the ending
/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/bin/
/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/bin
In both cases LogMx starts up, shows the logo and then quits. There is nothing in the log to indicate the problem. Can you give me some advice?
updating startup.conf JAVA_PATH
Moderator: admin
Re: updating startup.conf JAVA_PATH
Hello,
LogMX runs fine on our end with Java 15 on macOS (Java 15.0.1), as well as Java 8. As for JAVA_PATH, it should work if you point to /Home/bin, /Home/bin/, /Home, or /Home. Here are a few things you can try:
Xavier
LogMX runs fine on our end with Java 15 on macOS (Java 15.0.1), as well as Java 8. As for JAVA_PATH, it should work if you point to /Home/bin, /Home/bin/, /Home, or /Home. Here are a few things you can try:
- Look at the LogMX log files ("LogMX*.log*" in your home directory), to see if some errors happen during LogMX startup
- Temporarily move your file "<LogMX-Directory>/config/logmx.properties" to another location (or rename the file), to start LogMX with a fresh configuration
- Start LogMX through the terminal using the command "<LogMX-Directory>/LogMX.app/Contents/MacOS/LogMX" and check the output
Xavier
-
- Posts: 14
- Joined: Mon Jul 02, 2018 6:17 pm
Re: updating startup.conf JAVA_PATH
Reverted back to Java 8 and LogMx worked fine. Time passed and installed Java 16 and need to run it in Java_Home. Same problem appears. This time I am presenting a log from starting up LogMX.app as you suggested.
There is no LogMX.log that gets created in my home directory (there were some from previous runs when it actually launched, but nothing from these attempts)
There is a libjli.dylib present in the MacOS folder inside the jdk-16.jdk directory.
There is no LogMX.log that gets created in my home directory (there were some from previous runs when it actually launched, but nothing from these attempts)
There is a libjli.dylib present in the MacOS folder inside the jdk-16.jdk directory.
Code: Select all
mrobinson@development Scripts % /Applications/LogMX_v6.1.1_pro\ 1/LogMX.app/Contents/MacOS/LogMX
2021-04-17 18:23:43.799 LogMX[36351:20135765] Main called with 1 args
2021-04-17 18:23:43.799 LogMX[36351:20135765] Loading Application 'LogMX' from '/Applications/LogMX_v6.1.1_pro 1/LogMX.app'...
2021-04-17 18:23:43.799 LogMX[36351:20135765] Checking presence of app JAR file "/Applications/LogMX_v6.1.1_pro 1/LogMX.app/../jar/logmx.jar"...
2021-04-17 18:23:43.799 LogMX[36351:20135765] Checking presence of app lib dir "/Applications/LogMX_v6.1.1_pro 1/LogMX.app/../lib"...
2021-04-17 18:23:43.799 LogMX[36351:20135765] Checking presence of app pics dir "/Applications/LogMX_v6.1.1_pro 1/LogMX.app/../pics"...
2021-04-17 18:23:43.799 LogMX[36351:20135765] Reading startup config file "/Applications/LogMX_v6.1.1_pro 1/LogMX.app/../startup.conf"...
2021-04-17 18:23:43.801 LogMX[36351:20135765] Done reading startup config file
2021-04-17 18:23:43.801 LogMX[36351:20135765] Working Directory: '/Users/mrobinson/Documents/Scripts'
2021-04-17 18:23:43.801 LogMX[36351:20135765] Using specified Java Home '/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/'
2021-04-17 18:23:43.801 LogMX[36351:20135765] Checking dylib at [/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/Contents/Home/jre/lib/jli/libjli.dylib]
2021-04-17 18:23:43.801 LogMX[36351:20135765] Checking dylib at [/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/Contents/Home/lib/jli/libjli.dylib]
2021-04-17 18:23:43.801 LogMX[36351:20135765] Checking dylib at [/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/jre/lib/jli/libjli.dylib]
2021-04-17 18:23:43.801 LogMX[36351:20135765] Checking dylib at [/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/lib/jli/libjli.dylib]
2021-04-17 18:23:43.801 LogMX[36351:20135765] Checking dylib at [/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/../jre/lib/jli/libjli.dylib]
2021-04-17 18:23:43.801 LogMX[36351:20135765] Checking dylib at [/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/../lib/jli/libjli.dylib]
2021-04-17 18:23:43.801 LogMX[36351:20135765] Couldn't find dylib for java home [/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/]
Re: updating startup.conf JAVA_PATH
Hello,
Oh ok I see what's happening now thanks to the logs you included in your last message: you are using an old version of LogMX (v6.1.1 from 2018). We fixed a compatibility issue with Java 11+/macOS in LogMX v7.10.0 (January 2020) (see https://logmx.com/download#ChangeLog)
Although you may be able to make v6.1.1 work with Java 16 by manually copying "libjli.dylib" from "/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/lib/" to "/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/lib/jli/", it may not work as this dynamic library "libjli.dylib" may expect to find the other libraries at a specific relative path... So I would strongly recommend upgrading to the latest LogMX version, also because v7.4.0 fixed important security issues as well.
Please let me know!
Xavier
Oh ok I see what's happening now thanks to the logs you included in your last message: you are using an old version of LogMX (v6.1.1 from 2018). We fixed a compatibility issue with Java 11+/macOS in LogMX v7.10.0 (January 2020) (see https://logmx.com/download#ChangeLog)
Although you may be able to make v6.1.1 work with Java 16 by manually copying "libjli.dylib" from "/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/lib/" to "/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/lib/jli/", it may not work as this dynamic library "libjli.dylib" may expect to find the other libraries at a specific relative path... So I would strongly recommend upgrading to the latest LogMX version, also because v7.4.0 fixed important security issues as well.
Please let me know!
Xavier
-
- Posts: 14
- Joined: Mon Jul 02, 2018 6:17 pm
Re: updating startup.conf JAVA_PATH
Thanks for the reply, Xavier. I tried moving "libjli.dylib" from "/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home/lib/" as you suggested. However, that does not change anything. I would not mind updating the app but it seems there is no discount for existing users, just the regular purchase price. I'm afraid I cannot justify the cost based on my usage. I do thank you for your help though.
Best wishes,
Mike
Best wishes,
Mike
Re: updating startup.conf JAVA_PATH
Hello,
I just sent you an email (address indicated in this forum profile) to offer you 20% off to renew your license Let me know if you didn't receive it, or if you have any question!
PS: alternatively, you can also still use Java 8/9/10 for LogMX (you can have multiple Java versions installed, and this old LogMX version can still point to Java 8/9/10 while your other apps can use Java 16+)
Thanks,
Xavier
I just sent you an email (address indicated in this forum profile) to offer you 20% off to renew your license Let me know if you didn't receive it, or if you have any question!
PS: alternatively, you can also still use Java 8/9/10 for LogMX (you can have multiple Java versions installed, and this old LogMX version can still point to Java 8/9/10 while your other apps can use Java 16+)
Thanks,
Xavier