This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Interacting with Windows API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Interacting with Windows API" Watch "Interacting with Windows API" New topic
Author

Interacting with Windows API

anamitra kan
Greenhorn

Joined: May 25, 2006
Posts: 4
hi,

I am new to applets. I am not sure whether this question should be posted here. Is there anyway I can get the system information which is accessing a java web app through a browser.
1.Free hard disk space
2.CPU info
3.RAM
3.Operation System
4.Browser
We can do it with ActiveX control, but is there anything equivalent in Java?

-thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
Hello Anamitra-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, some of this information can be gleaned from the HTTP User-Agent header (OS and browser), although that can be forged.
CPU and OS is also available through Java system properties, but those are off-limits for regular applets - you'd need to digitally sign the applet to access these properties.


Ping & DNS - my free Android networking tools app
anamitra kan
Greenhorn

Joined: May 25, 2006
Posts: 4
hi,

I would like to know what is the procedure to digitally sign the applet. And also how could we access the above mentioned properties like RAM and free hard disk space from an applet.

thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41060
    
  43
Information on how to sign applets can be found on this wiki page.
 
jQuery in Action, 2nd edition
 
subject: Interacting with Windows API
 
Similar Threads
web application drawbacks
launch other programs from Java app
web application drawback
detecting browser name/version from an Applet
web application drawbacks