Java-Get Java Property

Get Java Property The System.getProperty( ) method is used to you can obtain the values of various environment variables. The following properties use to find Java property : java.home Identifies the Installation directory for Java Runtime Environment. java.vm.name Identifies the JVM implementation. java.vm.version Identifies the JVM implementation version. java.vm.version Identifies the version of the JVM specification on … Read more…

Java-Get OS and User Property

Get OS and User Property The System.getProperty( ) method is used to you can obtain the values of various environment variables. The following properties use to find Operating System and User property : os.name Operating system name os.version Operating system version os.arch Operating system architecture user.dir User working directory user.home User home directory user.name User account name … Read more…

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 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); } } }