Username detection

Posted on 2003-11-30
Last Modified: 2010-03-31
I want to be able to detect the name of a user running a java application. This will not be running via applet in a browser.

           Please post any help for me
Question by:JTWolfman
  • 4
  • 2
LVL 92

Accepted Solution

objects earned 100 total points
ID: 9847818


But you'll need to sign the applet.
LVL 92

Expert Comment

ID: 9847863

Author Comment

ID: 9848019
one more question, if you dont mind. How do i check if the username is a particular name?
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

LVL 92

Expert Comment

ID: 9848044
String username = System.getProperty("");
if (username.equals("JTWolfman"))
   // do whatever

Author Comment

ID: 9848154
thanks man, your a life saver
LVL 92

Expert Comment

ID: 9848171
No worries, happy I could help.

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
micro services spring boot application error 3 189
custom annotations 9 38
ejb on wildfly 5 20
String array comparison 4 33
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question