Set the ${user} variable in Eclipse


To set the ${user} variable in Eclipse, either:

  1. add the following line to the eclipse.ini file:
    -Duser.name=[the_desired_user_name]

    for example:

    -Duser.name=mic.check@ows.com
  2. place the same code in your JAVA_OPTS environment variable if Eclipse is started from the command line
  3. put the same construct on the command line when Eclipse is started. Eclipse extracts the ${user} variable from system properties so any method that sets the user.name property will work.

About Terry Gardner

Terry Gardner was a leading directory services architect with experience with many large scale directory services installations and messaging server installations, and was a Subject Matter Expert in the field of Directory Services and Solaris (operating system) performance. Mr. Gardner also participated in the open-source software community. Mr. Gardner passed away in December, 2013.
This entry was posted in computing, Java and tagged , , , . Bookmark the permalink.

Leave a comment