File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Getting serial number via server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Getting serial number via server" Watch "Getting serial number via server" New topic
Author

Getting serial number via server

Lila Fowler
Ranch Hand

Joined: Jul 31, 2009
Posts: 84
Hi all,

Im trying to get the hard drive serial number off users pc that are running the program via a server, I am getting the correct serial number when i run the program off individual pc's but as soon as it is run the program through the server it only returns the servers hard drive serial.

Any idea's on how to get the users serial number while they are running the program through the server?

Here is my current code:



Thanks


Courage is not the absence of fear but rather the judgment that something is more important then fear. ~ Ambrose Redmond
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14107
    
  16

What do you mean exactly by "running the program through the server"; is it a web application, where the user uses it via his or her web browser? If so, then is it a Java applet running in the browser, or an HTML / JavaScript web app? Or is it something different, a Java desktop application that talks to a server?

If it's a web application, this kind of thing is (almost) impossible, since web apps running in a user's browser have lots of security restrictions, and cannot access the user's local file system and hardware directly.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Lila Fowler
Ranch Hand

Joined: Jul 31, 2009
Posts: 84
A jar put on the server and the clients run the program through the server on the browser as an applet, the applet calls the main class --> so everything is written in normal java - not servlets/jsp.

Any ideas thanks?
Lila Fowler
Ranch Hand

Joined: Jul 31, 2009
Posts: 84
Thanks guys, it was a really stupid mistake i made, i called it from the server side instead of the client side, the method works perfectly. Sorry & thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting serial number via server