簡單配置jena在eclipse的開發環境


 Jena:A free and open source Java framework for building Semantic Web and Linked Data applications.

耶拿(Jena)是德國中部薩萊河畔的市鎮,人口約十萬余,是德國 圖林根州僅次於州首府 埃爾福特的第二大城市。耶拿以光學工業聞名,有 卡爾·蔡司廠和 肖特玻璃廠。 耶拿大學也較有名。
:)
 
1.下載 jena例子和源碼
源碼(可不下)  https://github.com/apache/jena
 
安裝前置JDK 1.8 (非JRE)
MVN用於自動獲取JENA依賴的lib。 通過他下載example中的lib
 
2.1 (這里寫你自己的路徑,CMD中運行) set PATH="F:\2_Code\mvn\apache-maven-3.5.0\bin";%PATH%
2.2 Make sure JAVA_HOME is set to the location of your JDK,如果不是,可以仿照2.1設置path ,:D
2.3 Run " mvn --version" to verify that it is correctly installed.
2.4 cd jena-example 運行命令 “ package mvn package”
2.5 配置成eclipse格式 “ mvn eclipse:eclipse
【re-generate Eclipse .project and .classpath files automatically from your pom.xml file.】
2.6 自動拷貝進eclipse相關文件夾 mvn dependency:copy-dependencies
【copy all the *.jar files in the target/dependency/ directory.】
 
3.在eclipse中導入該項目。直接run即可。
 
PS:在eclipse中配置mvn個人感覺並不是很好用。
 
 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM