如何在 eclipse 上安装 Jung2?
有人可以为我仔细地完成这些步骤吗?我已经尝试了几个小时,但似乎无法得到它。我使用的是 Mac。而且,我希望能够在使用 Eclipse IDE 进行编程时使用 Jung2 库。
Can someone walk through the steps carefully for me? I have been trying for hours and I can't seem to get it. I'm using a Mac. And, I want to be able to use the Jung2 libraries while programming, using the Eclipse IDE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
@Rohan:JUNG 2.0框架包含二进制和源形式的jar。
要使用 JUNG 中的二进制 jar,您需要将它们添加为项目中的
引用库
。创建一个新项目。然后,在项目目录中的某个位置添加所需的 JUNG jar。刷新
项目树。右键单击每个 JUNG jar 将其添加到Build Path >添加到 Eclipse 中的构建路径
。通过这样做,每个库都将注册在项目中的Referenced Libraries
树下。由于一些 JUNG jar 有源代码版本,您可以打开项目的
Build Path
并转到Libraries 选项卡
。在此选项卡下,列出了所有 JAR。将 JUNG 源代码 jar 版本附加到该 jar 的源附件
下的等效 JUNG 二进制 jar 版本。例如:将jung-samples-2.0.1-sources.jar
附加到jung-samples-2.0.1.jar
完成后,转到
jung-samples -2.0.1
在Referenced Libraries
下并打开 JUNG 包中的任何类。您将能够看到该类的源代码视图。@Rohan: JUNG 2.0 Framework contains both binary and source form of jars.
To use the binary jars from JUNG, you need to add them as
Referenced Libraries
in a project. Create a new project. Then, add required JUNG jars somewhere inside project directory.Refresh
project tree. Right-click on each JUNG jar to add it toBuild Path > Add to Build Path
in Eclipse. By doing this, each will be registered underReferenced Libraries
tree in the project.Since a few JUNG jars have source code version, you can open the
Build Path
of the project and go toLibraries tab
. Under this tab, it lists all JARs. Attach the JUNG source code jar version to equivalent JUNG binary jar version underSource attachment
of that jar. For example: attachjung-samples-2.0.1-sources.jar
tojung-samples-2.0.1.jar
Once done, go to
jung-samples-2.0.1
underReferenced Libraries
and open any class in a JUNG package. You will be able to see the source code view of the class.一种简单的方法是使用 Maven。你可以把jung2作为依赖库放在你的pom.xml中
现在有一个很好的eclipse的maven插件,m2e。
One easy way is to use maven. You can put jung2 as dependency libraries in your pom.xml
Now there is a nice maven plugin for eclipse, m2e.
没明白你说的安装是什么意思?您需要下载 jung2 lib 和库,其中 jung2 依赖于 colt 和通用集合参见下载页面。接下来,您需要将这些库添加到您的类路径中,请参阅本教程 。
I do not what do you mean by installing? You need to download jung2 lib and libraries, which jung2 depends on colt and generic collections see download page. Next, you need to add these libraries to your classpath, see this tutorial.