Set the value of the Java.library.path (mac/linux/windows)

Source: Internet
Author: User

Description: Online basically for this value of the settings are divided into two sides, Windows and Linux pie, Windows does not say, Linux will only say set Ld_library_path can, but this way in Java 8 is a wrong setting, especially cross-platform settings, Will almost be ineffective. So now the new version set this value to pay attention to a few points:

1. Operating system

2. Version of Java

First, the previous version of Java 8 (Java 7)

    • Windows:path
    • Linux:ld_library_path
    • Mac:dyld_library_path

Ii. version for Java 8

    • Windows:path
    • Linux:ld_library_path
    • Mac:java_library_path

Summary: It can be seen in the above settings, there is a noticeable change in the setting is the Mac, from Dyld_library_path to Java_library_path, which is a silent setting.

Other:

1, if you set the environment variable, the idea or command line run invalid situation, restart the idea test, many times it is not effective.

2. Examples of setting environment variables in Unix-like systems:

Export Ld_library_path= $LD _library_path:~/library/java/extensions:/library/java/extensions:/network/library/ Java/extensions

Reference:

Https://stackoverflow.com/questions/20038789/default-java-library-path

Set the value of the Java.library.path (mac/linux/windows)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.