Eclipse:将Java构建路径复制到其他工作空间 [英] Eclipse: copy the Java Build Path to a different workspace

查看:54
本文介绍了Eclipse:将Java构建路径复制到其他工作空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,如何将Java Build Path复制到另一个工作区?

In Eclipse how do I copy the Java Build Path to a different workspace?

某处有人写道,如果您复制项目,那么您也复制了构建路径.似乎并非如此.

Somebody somewhere wrote that if you copy the project then you have copied the build path also. This doesn't seem to be the case.

我尝试将整个工作区复制到新目录.打开Eclipse并将其指向新目录将包含所有项目和源文件,但是我的项目的构建路径为空.它甚至没有基本的Java源文件(java.lang.Object)来构建.

I've tried copying the entire workspace to a new directory. Opening Eclipse and pointing it to the new directory has all the projects and source files but the build path for my project is empty. It doesn't even have the basic Java source files to build against (java.lang.Object).

Eclipse 3.3.0(欧罗巴)

Eclipse 3.3.0 (Europa)

有什么想法吗?

推荐答案

构建路径存储在项目根目录中名为.classpath的文件中.我不知道有什么不同的方式,当然,复制目录也应该复制该文件.您如何复制项目?什么操作系统?

The build path is stored in a file named .classpath in the project's root directory. I don't know of any different way, and copying the directory should also copy that file, of course. How do you copy the project? What OS?

这篇关于Eclipse:将Java构建路径复制到其他工作空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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