如何在eclipse上安装Jung2? [英] How do I install Jung2 on eclipse?

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

问题描述

http://jung.sourceforge.net/



有人可以为我仔细地走过这些步骤吗?我一直在努力几个小时,似乎无法得到它。我正在使用Mac。而且,我希望能够在编程时使用Jung2库,并使用Eclipse IDE。

解决方案@Rohan:JUNG 2.0 Framework包含二进制和源代码形式的jar。

要使用JUNG中的二进制jar,您需要在项目中将它们添加为 Referenced Libraries 。创建一个新项目。然后,在项目目录内的某个地方添加所需的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



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


http://jung.sourceforge.net/

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

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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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