本文介绍了如何在 Eclipse 上安装 Jung2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://jung.sourceforge.net/

有人可以帮我仔细走一遍步骤吗?我已经尝试了几个小时,但似乎无法理解.我正在使用 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.

推荐答案

@Rohan: JUNG 2.0 Framework 包含二进制和源格式的 jars.

@Rohan: JUNG 2.0 Framework contains both binary and source form of jars.

要使用 JUNG 中的二进制 jar,您需要将它们作为 Referenced Libraries 添加到项目中.创建一个新项目.然后,在项目目录中的某处添加所需的 JUNG jar.Refresh 项目树.右键单击每个 JUNG jar 将其添加到 Build Path >在 Eclipse 中添加到构建路径.通过这样做,每个都将在项目中的 Referenced Libraries 树下注册.

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 to Build Path > Add to Build Path in Eclipse. By doing this, each will be registered under Referenced Libraries tree in the project.

由于一些 JUNG jar 有源代码版本,您可以打开项目的 Build Path 并转到 Libraries 选项卡.在此选项卡下,它列出了所有 JAR.将 JUNG 源代码 jar 版本附加到该 jar 的 Source attachment 下的等效 JUNG 二进制 jar 版本.例如:将 jung-samples-2.0.1-sources.jar 附加到 jung-samples-2.0.1.jar

Since a few JUNG jars have source code version, you can open the Build Path of the project and go to Libraries tab. Under this tab, it lists all JARs. Attach the JUNG source code jar version to equivalent JUNG binary jar version under Source attachment of that jar. For example: attach jung-samples-2.0.1-sources.jar to jung-samples-2.0.1.jar

完成后,转到 Referenced Libraries 下的 jung-samples-2.0.1 并打开 JUNG 包中的任何类.您将能够看到该类的源代码视图.

Once done, go to jung-samples-2.0.1 under Referenced Libraries and open any class in a JUNG package. You will be able to see the source code view of the class.

这篇关于如何在 Eclipse 上安装 Jung2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 11:10