Eclipse and Windows 7

前端 未结 2 1478
南旧
南旧 2020-12-10 17:38

I have reinstalled my computer with Windows 7, and Eclipse 3.5.1 (Galileo).

The weird thing is that I can not see any files that Eclipse produces. I can not find th

相关标签:
2条回答
  • 2020-12-10 18:06

    You can launch eclipse with the -showlocation option, which will display the path of the workspace in the title bar.
    (See this eclipse.ini for instance)

    From there, you can check if you find that workspace, and its eclipse projects within it.

    You can also configure your shortcut:

    enter image description here

    0 讨论(0)
  • 2020-12-10 18:29

    Where do you have Eclipse installed? Where is your workspace?

    In Windows 7 (Vista, actually), a lot of security policies that existed only on paper in earlier versions of Windows, are now actually enforced by the operating system. For example, according to Microsoft's documentation, it has been pretty much illegal to write to C:\Program Files for decades now, but if you actually tried it, it still worked. Not anymore. As of Vista, C:\Program Files is off-limits.

    However, in order not to break existing (broken) applications, Microsoft introduced filesystem virtualization. If an application tries to write to C:\Program Files, it gets silently redirected to C:\Users\%Username%\AppData\Local\VirtualStore\Program Files. So, this specific application sees all the files it created or changed in C:\Program Files, but other applications, and this includes the Explorer, see only the unchanged / empty directory.

    This does not just apply to C:\Program Files but also to other system directories as well. Also, it applies to system parts of the registry, like HKEY_LOCAL_MACHINE for example.

    In order to sidestep all of this, I simply installed my copy of Eclipse in %LocalAppData%\eclipse (that's C:\Users\%Username%\AppData\Local\eclipse) and created my workspace in %AppData%\eclipse (that's C:\Users\%Username%\AppData\Roaming\eclipse). That Just Works™.

    0 讨论(0)
提交回复
热议问题