This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread for details.
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 JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "windows user name " Watch "windows user name " New topic
Author

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: 10519
    
    9

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 :


Enjoy!

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)
 
 
subject: windows user name