如何在 eclipse 上安装 Jung2?

发布于 2024-10-31 12:07:00 字数 189 浏览 7 评论 0原文

http://jung.sourceforge.net/

有人可以为我仔细地完成这些步骤吗?我已经尝试了几个小时,但似乎无法得到它。我使用的是 Mac。而且,我希望能够在使用 Eclipse IDE 进行编程时使用 Jung2 库。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

羁〃客ぐ 2024-11-07 12:07:00

@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.1Referenced 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 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.

迟月 2024-11-07 12:07:00

一种简单的方法是使用 Maven。你可以把jung2作为依赖库放在你的pom.xml中

    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung2</artifactId>
        <version>2.0.1</version>
        <type>pom</type>
    </dependency>
    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-graph-impl</artifactId>
        <version>2.0.1</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

现在有一个很好的eclipse的maven插件,m2e

One easy way is to use maven. You can put jung2 as dependency libraries in your pom.xml

    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung2</artifactId>
        <version>2.0.1</version>
        <type>pom</type>
    </dependency>
    <dependency>
        <groupId>net.sf.jung</groupId>
        <artifactId>jung-graph-impl</artifactId>
        <version>2.0.1</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

Now there is a nice maven plugin for eclipse, m2e.

少女情怀诗 2024-11-07 12:07:00

没明白你说的安装是什么意思?您需要下载 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文