简体   繁体   中英

How can i know java library path?

I'm new to java i need to know where is java library path to add it in my open source i searched for is this command

which java 

gave me

/usr/bin/java

Java:

System.out.println(System.getProperty("java.library.path")); 

console:

java -XshowSettings:properties

You have to follow the symbolic links.

ls -lah /usr/bin/java
/usr/bin/java -> /etc/alternatives/java

ls -lah /etc/alternatives/java
/etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM