You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Sanne Grinovero (JIRA)" <ji...@apache.org> on 2016/07/15 12:47:20 UTC

[jira] [Commented] (KARAF-3518) JDK9: endorsed directories not working any longer

    [ https://issues.apache.org/jira/browse/KARAF-3518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379324#comment-15379324 ] 

Sanne Grinovero commented on KARAF-3518:
----------------------------------------

I am not a Karaf expert so can't tell for sure, but I suspect you could use the modules system as a better replacement for the endorsed libraries. Depending on specific needs, you might not want to replace the libraries from the JDK, but have the platform use its own version and Karaf use the version of your choice, having these nicely isolated. Alternatively if you need to replace the ones from the platform, the modules system provides options for that case as well although that's probably a less desirable way as it would impact all other libraries running on Karaf too, while the point of the modules is to allow each library to make its own choices.

Unfortunately I can't help developing this as I'm not familiar with the reasons for Karaf to use endorsed libraries, but I'd be happy to test any experimental branch or patch with our testsuite too.

> JDK9: endorsed directories not working any longer
> -------------------------------------------------
>
>                 Key: KARAF-3518
>                 URL: https://issues.apache.org/jira/browse/KARAF-3518
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core, karaf-os-integration
>    Affects Versions: 4.0.0.M3
>         Environment: OS X, 
> java version "1.9.0-ea"
> Java(TM) SE Runtime Environment (build 1.9.0-ea-b49)
> Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b49, mixed mode)
>            Reporter: Achim Nierbeck
>              Labels: java9
>             Fix For: 4.1.0
>
>
> following message is caught with JDK 1.9: 
> {code}
> -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home/lib/endorsed:/Users/anierbeck/Development/server/apache-karaf-4.0.0.M2/lib/endorsed is not supported. Endorsed standards and standalone APIs
> in modular form will be supported via the concept of upgradeable modules.
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)