Opened 3 months ago

Last modified 2 months ago

#63509 assigned defect

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:
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 (3)

comment:1 Changed 3 months 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 months 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 2 months 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 2 months ago by breun (Nils Breunese) (previous) (diff)
Note: See TracTickets for help on using tickets.