Opened 3 years ago

Closed 2 weeks ago

#63509 closed defect (wontfix)

openjdk @ 11 – temurin renaming breaks (?) directory name convention

Reported by: thetrial (alabay) Owned by: breun (Nils Breunese)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: elcapitan legacy-os Cc: cooljeanius (Eric Gallager)
Port: openjdk11 openjdk11-temurin

Description

This is maybe not a typical defect, but when installing openjdk via MacPorts, the resulting directory name, i. e. the folder under /Library/Java/JavaVirtualMachines/ is not named the same way as if installed via installer. The latter results in /Library/Java/JavaVirtualMachines/temurin-11.jdk … the Macports version /Library/Java/JavaVirtualMachines/openjdk11-temurin. TV Browser e. g. then claims not to find a proper Java installation. This started with the temurin renaming.

Also with openjdk12 leading to openjdk16 this problem remains.

Change History (5)

comment:1 Changed 3 years ago by breun (Nils Breunese)

I don’t consider this a defect in the port. I am not familiar with TV Browser, but a Java-based program should be able to find a matching JVM for a particular Java major version on macOS via /usr/libexec/java_home -v <VERSION>. Maybe TV Browser’s startup script can be modified to use this, or maybe a specific JVM can be configured.

What does /usr/libexec/java_home -v 11 return on your system?

comment:2 Changed 3 years ago by thetrial (alabay)

With MP built Java:

/Library/Java/JavaVirtualMachines/openjdk11-temurin/Contents/Home

With installed Java:

/Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home

Even if both versions are installed, TV Browser does not manage to start.

comment:3 Changed 3 years ago by breun (Nils Breunese)

I don’t know how TV Browser generally finds a JVM. Maybe its docs, community or developers can help you?

Last edited 3 years ago by breun (Nils Breunese) (previous) (diff)

comment:4 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:5 Changed 2 weeks ago by breun (Nils Breunese)

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.