Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7565257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:06:29+00:00 2026-05-30T14:06:29+00:00

Here is my situation. I am writing a program that will store a database.

  • 0

Here is my situation.

I am writing a program that will store a database. Currently, the way of identifying the user is by their computer user name. I am very desperate here, so any ideas will work. I am looking for ANY method (doesn’t always need to work) for BOTH OSX and Windows computers that will somehow fetch the user’s first and last name.

Thank you all in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:06:30+00:00Added an answer on May 30, 2026 at 2:06 pm

    Many times, the computer won’t even know the user’s real name — you realize that, right? That said, there’s a Java system property “user.name” which will always contain the login name, on any system:

    String username = System.getProperty("user.name");
    

    That’s the only thing you can get with any reliability.

    … except for prompting the user. Why not just ask them for their name?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the situation. I'm writing an automated test that walks the list of dependencies
I'm writing my first script that will connect via SSL to a MySQL database.
Here's the situation: I'm writing a simple AJAX application that performs CRUD functions. When
here is my situation: we are writing an application that must transform Microsoft Kinect
I have run into an odd situation. I'm writing a JavaScript bookmarklet that will
Here's the situation - I've got a shell that loads an external .swf. Now,
Here's the situation: we have an Oracle database we need to connect to to
Here's my situation: I'm writing a chat client to connect to a chat server.
Here's my situation. I have a user table and a password_reset table which references
I am writing a simulation program that proceeds in discrete steps. The simulation consists

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.