简体   繁体   English

Eclipse Package Explorer始终为空?

[英]Eclipse Package Explorer is always empty?

I want to keep my Java projects on a flash drive. 我想将Java项目保留在闪存驱动器上。 Whenever I start up Eclipse, I choose the folder on my flash drive with all of my projects, but the package explorer is always empty. 每当我启动Eclipse时,我都会选择包含所有项目的闪存驱动器上的文件夹,但包资源管理器始终为空。 I constantly have to make new duplicate projects and copy the text from the .java file. 我经常需要制作新的重复项目,并复制.java文件中的文本。 Can someone help me out? 有人可以帮我吗?

The package explorer is reflective of the workspace that you have open. 包资源管理器反映了您打开的工作区。 You generally want to start eclipse with the same workspace (for beginning users) and import your projects into that workspace. 通常,您希望使用相同的工作空间(供初学者使用)开始Eclipse并将项目导入到该工作空间中。 Don't search out and open eclipse in a project folder because that wont work. 不要搜索并在项目文件夹中打开eclipse,因为那样行不通。

My suggestion is to create your default workspace on your local hard drive, then when you want to create new projects, make sure you uncheck the Use default location and select the location of your flash drive. 我的建议是在本地硬盘驱动器上创建默认工作区,然后在要创建新项目时,请确保取消选中“ Use default location并选择闪存驱动器的位置。 You can also import your existing projects on your flash drive to the default workspace. 您也可以将闪存驱动器上的现有项目导入默认工作区。

Take a look at the Error Log view ( http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fau16690_.htm ). 查看“错误日志”视图( http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fau16690_.htm )。 You will see the reason why your projects cannot be opened. 您将看到无法打开项目的原因。 I would tip on having different drive name than you had last time. 我会提示您使用与上次不同的驱动器名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM