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

Provide a vm switch to pass JNI library path

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Currently developers need to use -Djava.library.path property to pass the native library path to VM.

      Since it is a Java Property, it has it's own limitations. (Properties can't be repeated)
      e.g. All of the native library paths has to be passed in on go with **platform specific path separator**.
      (windows) -Djava.library.path=path/to/foo;path/to/bar;...;
      (*nix) -Djava.library.path=path/to/foo:path/to/bar:

      However if there is a proper JVM switch (as we have -class-path, -module-path), developer can easily use without any much ordering issues.
      e.g.
      --native-library-path path/to/foo --native-library-path path/to/bar

            Unassigned Unassigned
            arajkumar Arunprasad Rajkumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: