Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4976

JAVA_HOME autodiscovery not working on FreeBSD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • karaf
    • None
    • FreeBSD

    Description

      If JAVA_HOME isn't set setenv tries to detect it from the path of java. On FreeBSD this is /usr/local/bin/java, while java resides in /usr/local/openjdk8/. This leads to setting JAVA_HOME to a non existing path

      It would be nice to have it autodetect correctly, but at least check if the guessed JAVA_HOME is really a JDK/JRE, so it can be set correctly manually.

      Currently Karaf starts ok, but some functions that rely on a correct setting of JAVA_HOME fail with unrelated error messages (e.g. doing a https call only throws a premaster secret key error, because the Java ext dir is set incorrectly)

      Attachments

        1. java
          20 kB
          Eric de Boer

        Activity

          People

            Unassigned Unassigned
            esdeboer Eric de Boer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: