将Eclipse工作区从Windows导入到Mac OS X Mavericks? [英] Importing Eclipse workspace from Windows to Mac OS X Mavericks?

查看:43
本文介绍了将Eclipse工作区从Windows导入到Mac OS X Mavericks?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Windows pc上打开工作区时,调试器未显示任何错误,并且工作区中的程序运行良好.但是,当我在运行 OS X Mavericks 10.9.2 的Macbook Pro上将工作区导入到Eclipse时,IDE会发疯,并将所有内容标记为错误.

When I open my workspace on a windows pc, the debugger shows no errors and the programs in my workspace run well. However, when I import my workspace to Eclipse on my Macbook Pro running OS X Mavericks 10.9.2, the IDE goes crazy and marks everything with errors.

一些例子:

导入java.util.Scanner;导致错误:无法解析导入java.util

Importing java.util.Scanner; causes the error: The import java.util cannot be resolved

声明扫描仪会导致错误:扫描仪无法解析为类型

Declaring a Scanner causes the error: Scanner cannot be resolved to a type

这是怎么回事,可以采取哪些步骤解决这些无法解释的导入错误?

What is going on and what steps can be taken to resolve these unexplained import errors?

推荐答案

通常不会在像这样的文件系统之间共享工作区,尤其是在平台之间.我真的不感到惊讶,炸毁了.

You don't typically share workspaces across filesystems like this, especially across platforms. I'm really not surprised it blew up.

可以共享项目.首先,在新计算机上创建一个新的工作区.然后将项目(包含.project文件的文件夹)从旧版本复制到新工作空间.在Eclipse中,选择导入现有项目"选项,就可以完成.

You can share Projects, though. First, create a new workspace on the new computer. Then copy the Project (the folder that contains the .project file) from the old to the new workspace. In Eclipse, choose the 'Import Existing Project' option and you're done.

这篇关于将Eclipse工作区从Windows导入到Mac OS X Mavericks?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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