在Eclipse中引用的库遇到问题(跨平台兼容性) [英] Having issues with referenced libraries in Eclipse (cross platform compatibility)

查看:267
本文介绍了在Eclipse中引用的库遇到问题(跨平台兼容性)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在工作中,在Eclipse中创建GUI的工作(使用Windowbuilder)。无论如何,当我创建一个新的Java / SWT项目时,它会自动将引用的库添加到项目中(位于plugins文件夹中)。

I'm working on a side project at work creating a GUI in Eclipse (using Windowbuilder). Anyways, when I create a new Java/SWT project, it automatically adds the referenced libraries into the project (located in the plugins folder).

我的问题是, m使用git,所以我可以在家里和我的Windows电脑上工作的Macbook,当我把文件拖到我的Mac,图书馆指向我的电脑的绝对路径。

My issue is that I'm using git so I can work on my Macbook at home and my Windows computer at work, and that when I pulled the files to my Mac the libraries were pointing to the absolute path on my PC.

任何想法如何解决这个问题?

Any ideas how I can fix this?

推荐答案

要解决这个在eclipse,你可以右键单击参考库文件夹 - >构建路径 - >配置构建路径。在打开的属性设置框中,您可以修复构建路径以指向Macbook上库的正确位置。

To fix this in eclipse, you can right click on the "Referenced Libraries" folder -> Build Path -> Configure Build Path. In the opened Properties setting box, you can fix the build path to point to correct location of libraries on your Macbook.

这篇关于在Eclipse中引用的库遇到问题(跨平台兼容性)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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