File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 41524
    
  53
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: 41524
    
  53
Information on how to sign applets can be found on this wiki page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interacting with Windows API