在eclipse中創建具有依賴關係的java項目

testa 項目依賴項目 testb 1、創建兩個項目  在testa 中創建main 函數 testb中不創建 2、右鍵工程 testb => Build Path => Configure Build Path  3、選擇Projects = > Add 添加 依賴項目 4、添加需要依賴的項目 5、在testb 中創建 6、在testa中調用TestB中的方法 7、運行TestA中的main
相關文章
相關標籤/搜索