第一步安裝eclipse和floodlight
apt-get -y install build-essential default-jdk ant python-dev eclipse
git clone git://github.com/floodlight/floodlight.git
第二步進入到floodlight的目錄編譯。必須安裝ant才能編譯,使用apt-get命令安裝。
cd floodlight
ant
ant eclipse
注:必須編譯才能在eclipse導入,否則不能進行導入,出現no projects are found to import!
第三步打開eclipse進行導入
File --> Import --> General --> Existing Projects into Workspace --> Select root direction 找到clone出來的floodlight文件夾,選中 --> finish
然後就是運行配置設置
右鍵floodlight項目 --> Run As --> Run Configuration --> 右鍵Java Application --> new --> 名字自己命名,Project選擇floodlight,Main選擇net.floodlightcontroller.core.Main,最後點擊 Apply