---
title: "eclipse author 一直是administrator的问题解决方法"
author: "xiang588"
date: "2010-08-27T11:13:03Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-author-administrator"
draft: false
lastmod: "2010-08-27T11:13:03Z"
id: 748700
url: "https://feshine.iteye.com/blog/748700"
---

[版权声明](http://creativecommons.org/licenses/by/3.0/deed.zh)：转载时请以超链接形式标明文章原始出处和作者信息及[本声明](http://bangzhuzhongxin.blogbus.com/logs/11205960.html)  
[http://fallenlord.blogbus.com/logs/30421076.html](http://fallenlord.blogbus.com/logs/30421076.html)

其实是一个很小的问题，不过相信大多数人都遇上过，我反正是遇上好多次了，特别是在Eclipse中使用类的自动注释时，产生的老是是@author Administrator，每次都要手工去改很烦人。每次要么就是一个个手工改注释，要么就是把登陆用户改了

搜了国内很多地方都没有人知道方法，最后在官网的一个角落里找到了答案

在Eclipse启动时加入参数 -vmargs -Duser.name="whateveryouwant"

[http://dev.eclipse.org/mhonarc/lists/platform-dev/msg00635.html](http://dev.eclipse.org/mhonarc/lists/platform-dev/msg00635.html)

enjoy!