简体   繁体   English

使用Saros与引用的库共享Eclipse Java项目

[英]Sharing an Eclipse Java Project with referenced libraries using Saros

I've build a small Java Project using a few referenced libraries (Lucene jar files that are located somewhere on my PC). 我使用一些引用的库(位于PC上某处的Lucene jar文件)构建了一个小的Java项目。

I'm trying to share the projects with a friend using Saros so we could work on it simultaneously. 我正在尝试与使用Saros的朋友共享项目,以便我们可以同时进行。

everything works great aside from the fact that he can't see the referenced libraries and the app won't run on his computer. 除了他看不到引用的库并且该应用程序无法在他的计算机上运行之外,其他所有功能都很有效。

any advice? 有什么建议吗?

Found a solution. 找到了解决方案。

the problem was that the referenced jar files were located somewhere on my personal computer. 问题是所引用的jar文件位于我的个人计算机上的某个位置。 but in my partner computer, the jar files were located elsewhere. 但是在我的伙伴计算机中,jar文件位于其他位置。

my suggested solution is to create a directory within the Java Project and locate all the referenced jar files there (physically). 我建议的解决方案是在Java Project中创建一个目录,然后在本地(物理上)找到所有引用的jar文件。

by doing that, when the project is shared, your partner will get all the project relevant files including the directory you've created. 这样,共享项目时,您的合作伙伴将获得所有与项目相关的文件,包括您创建的目录。

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

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