Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: System Properties

From System Properties you can find information about the operating system, the user, and the version of Java.

Tutorial Details:

From System Properties you can find information about the operating system, the user, and the version of Java.

The property names (keys) and values are stored in a Properties structure. (See Properties). A Properties object can also be used to store your own program properties in a file.

Getting the System Properties
Typically you get one property at a time by supplying the key in a call to System.getProperty().

String System.getProperty(String key)
Returns the value of property key as a String.
String System.getProperty(String key, String default)
Returns the value of property key as a string, or default if the property did not exist.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/io/30properties_and_preferences/40sysprops/10sysprop.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
System Properties

View Tutorial:
System Properties

Related Tutorials:

Java Tip 42: Write Java apps that work with proxy-based firewalls - JavaWorld - December 1997
Java Tip 42: Write Java apps that work with proxy-based firewalls - JavaWorld - December 1997
 
XML JavaBeans, Part 2 - JavaWorld March 1999
XML JavaBeans, Part 2 - JavaWorld March 1999
 
XML JavaBeans, Part 3 - JavaWorld July 1999
XML JavaBeans, Part 3 - JavaWorld July 1999
 
Java Tip 74: Build dynamically extensible frameworks - JavaWorld
Java Tip 74: Build dynamically extensible frameworks - JavaWorld
 
Problems with Swing's new XMLOutputStream class - JavaWorld August 1999
Problems with Swing's new XMLOutputStream class - JavaWorld August 1999
 
Direct network traffic of EJBs - JavaWorld November 1999
Direct network traffic of EJBs - JavaWorld November 1999
 
Secure a Web application, Java-style - JavaWorld April 2000
Secure a Web application, Java-style - JavaWorld April 2000
 
Dynamic user interface is only skin deep - JavaWorld May 2000
Dynamic user interface is only skin deep - JavaWorld May 2000
 
C#: A language alternative or just J--?, Part 2 - JavaWorld December 2000
C#: A language alternative or just J--?, Part 2 - JavaWorld December 2000
 
Automate your build process using Java and Ant - JavaWorld October 2000
Automate your build process using Java and Ant - JavaWorld October 2000
 
Jato: The new kid on the open source block - JavaWorld March 2001
Jato: The new kid on the open source block - JavaWorld March 2001
 
Sir, what is your preference?
Sir, what is your preference?
 
Accelerate your RMI programming
Accelerate your RMI programming
 
Generate JavaBean classes dynamically with XSLT
Generate JavaBean classes dynamically with XSLT
 
Flexible User and Environment Ant Configuration
Flexible User and Environment Ant Configuration The de facto standard for building, packaging, and deploying Java applications is Apache Ant. Small differences in developers\' environments or preferences may cause problems with some Ant tasks that invo
 
Commons Launcher
The Launcher Component is designed to be a cross platform Java application launcher.
 
Aspect-Oriented Programming in Java
This article is divided into three parts: The first part explaines the concepts of AOP, the second introduces AspectJ(TM), an implementation of the AOP concepts in Java, and part three compares the AOP approach to metalevel programming.
 
ServerEclipse - Web Eclipse Plug-in
ServerEclipse - Web Eclipse Plug-in
 
Write custom appenders for log4j
The Apache Software Foundation's log4j logging library is one of the better logging systems around. It's both easier to use and more flexible than Java's built-in logging system.
 
What are the defined J2ME system property names?
A compilation of J2ME properties sorted by JSR. Learn the names, test for optional packages or retrieve platform specific configuration values.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.