Description: AntColonyAlgorithmThe import org.eclipse cannot be resolved
则表示需要安装SWT类库,下载SWT类库,然后将其加入CLASSPATH
如果是在eclipse中开发,你需要在你的工程构建路径中加入swt.jar的路径,在运行中的jvm参数中加入
-Djava.library.path="dll所在目录的绝对路径"
工程-->右键属性-->java构建路径-->库-->添加外部jar-->添加swt.jar(自己找找在哪儿)
To Search:
File list (Check if you may need any files):
蚁群算法\.classpath
........\.project
........\readme.txt
........\swt-win32-3236.dll
........\swt.jar
........\.rc\util\PheList.java
........\...\....\Position.java
........\...\....\PosList.java
........\...\....\PosQueue.java
........\...\....\PosStack.java
........\...\ant\Ant.java
........\...\...\AntCanvas.java
........\...\...\CustomMapDialog.java
........\...\...\Environment.java
........\...\...\Map.java
........\...\...\Pheromone.java
........\...\...\SettingsDialog.java
........\...\...\UI.java
........\maps\1.mapa
........\....\2.mapa
........\....\3.mapa
........\....\4.mapa
........\....\5.mapa
........\....\6.mapa
........\....\ants.bmp
........\bin\util\PheList$PheIterator.class
........\...\....\PheList.class
........\...\....\Position.class
........\...\....\PosList$PosListIterator.class
........\...\....\PosList.class
........\...\....\PosQueue$PosQueueIterator.class
........\...\....\PosQueue.class
........\...\....\PosStack.class
........\...\ant\Ant.class
........\...\...\AntCanvas.class
........\...\...\CustomMapDialog$1.class
........\...\...\CustomMapDialog$2.class
........\...\...\CustomMapDialog$3.class
........\...\...\CustomMapDialog.class
........\...\...\Environment$1.class
........\...\...\Environment$Daemon.class
........\...\...\Environment.class
........\...\...\Map.class
........\...\...\Pheromone$1.class
........\...\...\Pheromone$2.class
........\...\...\Pheromone$3.class
........\...\...\Pheromone.class
........\...\...\SettingsDialog$1.class
........\...\...\SettingsDialog$2.class
........\...\...\SettingsDialog.class
........\...\...\UI$1.class
........\...\...\UI$2.class
........\...\...\UI$3.class
........\...\...\UI$4.class
........\...\...\UI$5.class
........\...\...\UI$6.class
........\...\...\UI$7.class
........\...\...\UI$8.class
........\...\...\UI$9.class
........\...\...\UI.class
........\src\util
........\...\ant
........\bin\util
........\...\ant
........\src
........\maps
........\bin
蚁群算法