将JGraphT导入到Eclipse [英] Import JGraphT distribution to Eclipse

查看:430
本文介绍了将JGraphT导入到Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何安装此链接中提供的JGraphT分发:



http://sourceforge.net/projects/jgrapht/files/



我不明白文件的树结构及其与Eclipse中项目的结构关系。我想运行下列代码:



http ://jgrapht.org/visualizations.html



但我无法将样式导入Eclipse。例如,.java文件位于



jgrapht-0.9.0\source\jgrapht-demo\src\main\java\org\\ \\ jgrapht\demo

解决方案

请按照下列步骤操作:



1 )下载该页面上的.zip文件



2)在eclipse中创建一个新的Java项目



3)解压缩.zip文件



4)右键单击src文件夹,然后从文件系统中选择导入...

5)在解压缩文件下选择'src-> org'



6)您将需要'jgraph'运行任何示例


How can I install the JGraphT distribution offered in this link:

http://sourceforge.net/projects/jgrapht/files/

I do not understand the tree structure of files and its relation with the structure of a project in Eclipse. I would like to run the java code listed in:

http://jgrapht.org/visualizations.html

but I am not able to import the proyect to Eclipse. For example, that .java file is under

jgrapht-0.9.0\source\jgrapht-demo\src\main\java\org\jgrapht\demo

解决方案

Follow these steps:

1) download the .zip file on that page

2) create a new java project in eclipse

3) unzip .zip file

4) right click on the 'src' folder and select 'import...' from file system

5) select 'src->org' under the unzip files

6) you will need 'jgraph' to run any of the examples

这篇关于将JGraphT导入到Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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