在Windows中,eclipse文件夹应放在哪里? [英] In Windows, where should the eclipse folder be placed?

查看:740
本文介绍了在Windows中,eclipse文件夹应放在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行启用了UAC的Windows 7 。我一直觉得 Eclipse 不使用安装程序,并且不将AppData文件夹在Windows中存储数据,但最近我不得不重新安装几次(硬盘驱动器问题),我一直在想,如果我真的把它放在最佳位置。

I'm running Windows 7 with UAC enabled. I've always found it weird that Eclipse doesn't use an installer and doesn't use the AppData folder to store its data in Windows, but lately I've had to reinstall it a couple times (hard drive problems) and I've been wondering if I am really putting it in the best place.

我将eclipse文件夹复制到我的 C:\Program Files\ 目录,并在我的开始菜单上创建一个快捷方式,然后将其固定到我的任务栏。但是,eclipse有问题,所以我去属性,兼容性选项卡,并启用以管理员身份运行。然后每次我打开eclipse,我必须在UAC窗口中点击yes,但是一切正常,除了一个副作用:我的触摸板不滚动日食中的任何窗口。这是因为触摸板程序作为普通用户运行,因此无法以管理员身份修改eclipse运行。所以,然后我必须关闭并重新打开我的触摸板软件作为一个管理员。

I copy the eclipse folder to my C:\Program Files\ directory and make a shortcut on my start menu, and then pin it to my taskbar. However, eclipse has problems so I go to properties, the compatibility tab, and enable "Run as administrator". Then every time I open eclipse I have to hit yes on the UAC window, but everything works correctly, except for one side effect: my touchpad doesn't scroll any windows in eclipse. This is because the touchpad program is running as a normal user, so it can't modify eclipse running as administrator. So, then I have to close and reopen my touchpad software as an administrator.

无论如何,长的故事短... 最好的地方放在eclipse文件夹在Windows中,为什么?

Anyway, long story short... Where is the best place to put the eclipse folder in Windows, and why?

编辑:我刚刚发现一个可能的建议,随时评论。听起来像我第一次只能以管理员身份运行,并设置所有的插件等等,然后作为普通用户运行它作为正常的任务(编码)。我不敢相信我从来没有想过这样做,但是我可能会坚持到Program Files目录下,除非我在这里得到一个更好的答案,否则请尝试一下。

I just found a possible suggestion, feel free to comment. Sounds like I can just run it as administrator once the first time and set up all my plugins and such, and then run it as a normal user for my normal tasks (coding). I can't believe I never thought of doing this, but I may stick to the Program Files directory and give this approach a try unless I get a better answer here.

Ninite 将Eclipse放在C:\eclipse中。自从提出这个问题以来,这是我的Eclipse安装位置。 / />

Ninite places Eclipse in C:\eclipse. Ever since asking this question, that has been my install location for Eclipse. Eclipse still does not properly handle permissions when run out of the Program Files folder.

推荐答案

我在

c:\software\eclipse_{version}\  

我还将所有的开源软件包(ANT,Maven,Apache等)保存在c:\software中。然后我将必要的目录添加到我的 $ PATH 变量(c:\software\ant\bin)中。

I keep all my open source packages (ANT, Maven, Apache, etc) in c:\software as well. Then I add the necessary directories to my $PATH variable (c:\software\ant\bin).

我还将Eclipse工作区保留在 c:\software\eclipse_workspace 下。

I also keep the Eclipse workspace under c:\software\eclipse_workspace.

这个设置的最大优点是可移植性。我可以简单地将整个文件夹移动到一个新的驱动器,重新设置我的路径,并繁荣一切工作。根本没有干扰注册表设置。使它非常容易备份。

The big plus behind this setup is portability. I can simply move the entire folder to a new drive, re-setup my path, and boom everything works. No interference from registry settings at all. Makes it very easy to backup.

这个接近的工作适用于XP,Windows7 RC1和Windows7 Professional,没有问题。

This approached worked for XP, Windows7 RC1 and Windows7 Professional without issue.

这篇关于在Windows中,eclipse文件夹应放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆