The Artima Developer Community
Sponsored Link

Java Answers Forum
Java gets the system property ????

1 reply on 1 page. Most recent reply: May 21, 2003 12:05 PM by Jaycee

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
kopiko23

Posts: 1
Nickname: kopiko23
Registered: May, 2003

Java gets the system property ???? Posted: May 21, 2003 10:16 AM
Reply to this message Reply
Advertisement
I' am want create Java-Applet for get data system property in computer, when another computers used open this applet , give show data system property ( what os ?,quantity ram ?, quantity harddisk, name cd-rom ? etc. ) what can i do ????


Jaycee

Posts: 26
Nickname: jaycee
Registered: Apr, 2003

Re: Java gets the system property ???? Posted: May 21, 2003 12:05 PM
Reply to this message Reply
This works from a Java App. Not sure if an applet has access to system properties or not.

	Properties systemProperties = System.getProperties();
	Enumeration propertyNames = systemProperties.propertyNames();
 
	while(propertyNames.hasMoreElements()){
		propertyName = (String)propertyNames.nextElement();
		propertyValue = systemProperties.getProperty(propertyName);
		System.out.println("System property "+propertyName+"="+propertyValue);
	}

Flat View: This topic has 1 reply on 1 page
Topic: Document generation Previous Topic   Next Topic Topic: word count/tokenizer/comparator

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use