在Windows上应该将Eclipse安装到哪个文件夹? [英] What folder should I install Eclipse to on Windows?

查看:572
本文介绍了在Windows上应该将Eclipse安装到哪个文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Windows 7 启用了UAC 。我总是觉得很奇怪, 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窗口中单击是,但是所有工作正常,除了一个副作用:我的触摸板不会在eclipse中滚动任何窗口。这是因为触摸板程序是以普通用户身份运行的,因此无法修改以管理员身份运行的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.

总之,长话短说... 哪里是放最好的地方? Windows中的eclipse文件夹,为什么?

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安装位置。当用完Program Files文件夹时,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:\软件中。然后,将必要的目录添加到我的 $ 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天全站免登陆