我試圖用java與orientdb數據庫連接。這樣 OrientGraph odb = new OrientGraph("plocal:C:/Users/USER/Desktop/orientdb/databases/testJ", "admin", "admin");
如何使用java連接orientdb數據庫?
它顯示錯誤
HTTP Status 500 - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: com/orientechnologies/orient/core/db/record/ODatabaseRecord
我的依賴..
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-core</artifactId>
<version>2.0.8</version>
</dependency>
<dependency>
<groupId>com.orientechnologies</groupId>
<artifactId>orientdb-jdbc</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>com.tinkerpop</groupId>
<artifactId>pipes</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-core</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>com.tinkerpop.blueprints</groupId>
<artifactId>blueprints-orient-graph</artifactId>
<version>2.4.0</version>
</dependency>
幫我糾正錯誤.. 預先感謝您
嘗試'「file:/// Users/....」 – Thilo
如果以正確的方式創建數據庫,此答案可能會有所幫助:http://stackoverflow.com/a/22893008/2841481和http: //stackoverflow.com/a/26846163/2841481 –
'「file:/// Users/....」'不起作用。它顯示。 HTTP狀態500 - 請求處理失敗;嵌套的異常是com.orientechnologies.orient.core.exception.ODatabaseException:無法創建數據庫 –