如何將floodlight導入eclipse

第一步安裝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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章