jQuery in Action, 3rd edition
The moose likes Applets and the fly likes windows user name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "windows user name " Watch "windows user name " New topic

windows user name

Kowshik Nandagudi
Ranch Hand

Joined: Dec 09, 2010
Posts: 57
Hi ,

I am trying to get teh windows user name using the following code

I get a security error for this when I run in a browser?

My question

1 ) is it possible to get the windows user name ?

2) if yes , what are the steps that I need to follow ?

I am new to applet world!!!

Many thanks in advance
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10767

You probably need to sign your applet. More on it here http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

Signing a JAR file is easy. Here is what I do :


John Price

“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
I agree. Here's the link: http://aspose.com/file-tools
subject: windows user name
It's not a secret anymore!