Java-Get Java Library Paths

Get Java Library Paths

The java.library.path propertiey used to List of paths to search when loading libraries.

Program

0 (1) - Copy - Copy

Program Source

import java.util.StringTokenizer;

public class Javaapp {

    public static void main(String[] args) {
        
        StringTokenizer st = new StringTokenizer(System.getProperty("java.library.path"),";");

        while(st.hasMoreTokens())
        {
            String get = st.nextToken();
            System.out.println(get);
        }
    }
}

Leave a Comment