Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8183898

Cannot name the JDK home directory as "bin".

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      If you name the JDK home directory as "bin" such that ${JAVA_HOME}/bin/java ends up looking like /some/where/bin/bin/java, the launcher will fail to start:

      $ ./bin/bin/java -version
      Error: could not find libjava.so
      Error: Could not find Java SE Runtime Environment.

      $ cd bin
      $ ./bin/java -version
      Error: could not find libjava.so
      Error: Could not find Java SE Runtime Environment.

      Even setting JAVA_HOME explicitly doesn't help

      $ cd /some/where/bin
      $ env JAVA_HOME=$(pwd) ./bin/java
      Error: could not find libjava.so
      Error: Could not find Java SE Runtime Environment.

            Unassigned Unassigned
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: