imagej / imagej-launcher

The ImageJ native launcher
https://imagej.net/learn/launcher
BSD 2-Clause "Simplified" License
21 stars 23 forks source link

Rework Java linking on OSX. #38

Closed hinerm closed 5 years ago

hinerm commented 8 years ago

The OSX profiles try to link against Java 6. However, as of El Capitan, the expected Headers directory is no longer present in Apple Java 6 installs.

Instead, we should update the profiles to check for the "include" directory that is used in java 7+.

ctrueden commented 5 years ago

I believe this issue is resolved. Certainly with efaea16049ded0adba625238bf9c769798c4a18a (authored before this issue was filed!), the launcher links to libjli instead of libjvm on macOS, and that avoids the popup purporting that legacy Java 6 is required to run the program. One related issue there was that Info.plist still referenced the old ImageJ-tiger launcher, which did not include that fix.

In any case, things seem to work well with OpenJDK 8 and Oracle JDK 8 now, when Java 6 is not installed on the system.