updating startup.conf JAVA_PATH

Notes, tips, and other usefull things on how to use LogMX

Moderator: admin

Post Reply
mrobinson108
Posts: 14
Joined: Mon Jul 02, 2018 6:17 pm

updating startup.conf JAVA_PATH

Post by mrobinson108 »

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?
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: updating startup.conf JAVA_PATH

Post by admin »

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:
  1. Look at the LogMX log files ("LogMX*.log*" in your home directory), to see if some errors happen during LogMX startup
  2. Temporarily move your file "<LogMX-Directory>/config/logmx.properties" to another location (or rename the file), to start LogMX with a fresh configuration
  3. Start LogMX through the terminal using the command "<LogMX-Directory>/LogMX.app/Contents/MacOS/LogMX" and check the output
If you still have issues, please let me know your macOS version, and if your device is using an Apple M1 chip. Please also send me any log file you were able to collect.

Xavier
mrobinson108
Posts: 14
Joined: Mon Jul 02, 2018 6:17 pm

Re: updating startup.conf JAVA_PATH

Post by mrobinson108 »

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.

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/]
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: updating startup.conf JAVA_PATH

Post by admin »

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
mrobinson108
Posts: 14
Joined: Mon Jul 02, 2018 6:17 pm

Re: updating startup.conf JAVA_PATH

Post by mrobinson108 »

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
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: updating startup.conf JAVA_PATH

Post by admin »

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
Post Reply