Note that there are some explanatory texts on larger screens.

plurals
  1. POHypergraphDB Netbeans settings
    primarykey
    data
    text
    <p>I want to do something with the HypergraphDB in Java. I'm not very familiar with this language and IDE Netbeans. I followed steps describing the HGDB installation:<a href="http://www.hypergraphdb.org/learn?page=IntroInstall&amp;project=hypergraphdb" rel="nofollow">Link to tutorial</a> Now I want to write an example in Java (using NetbeansIDE).</p> <p>So I created new project, added refferences to the downloaded libraries. OK, now I'm able to import packages with HGDB. The only thing I have in my <code>main</code> method is <code>HyperGraph HG = new HyperGraph(dbLocation);</code>. This code compiles. But get following runtime error:</p> <pre><code> run: checkpoint kbytes:0 checkpoint minutes:0 java.lang.IllegalStateException: There is 1 existing transaction opened against the Environment. Aborting open transactions ... aborting &lt;Transaction id="28"&gt; at com.sleepycat.je.Environment.close(Environment.java:383) at org.hypergraphdb.storage.bje.BJEStorageImplementation.shutdown(BJEStorageImplementation.java:178) at org.hypergraphdb.HGStore.close(HGStore.java:355) at org.hypergraphdb.HyperGraph.open(HyperGraph.java:392) at org.hypergraphdb.HyperGraph.open(HyperGraph.java:213) at org.hypergraphdb.HyperGraph.&lt;init&gt;(HyperGraph.java:200) at hgdbtest.HgdbTest.main(HgdbTest.java:16) Exception in thread "main" org.hypergraphdb.HGException: java.lang.NoSuchMethodError: org.hypergraphdb.storage.bje.LinkBinding.objectToEntry(Ljava/lang/Object;Lcom/sleepycat/je/DatabaseEntry;)V at org.hypergraphdb.HyperGraph.open(HyperGraph.java:395) at org.hypergraphdb.HyperGraph.open(HyperGraph.java:213) at org.hypergraphdb.HyperGraph.&lt;init&gt;(HyperGraph.java:200) at hgdbtest.HgdbTest.main(HgdbTest.java:16) Caused by: java.lang.NoSuchMethodError: org.hypergraphdb.storage.bje.LinkBinding.objectToEntry(Ljava/lang/Object;Lcom/sleepycat/je/DatabaseEntry;)V at org.hypergraphdb.storage.bje.BJEStorageImplementation.store(BJEStorageImplementation.java:234) at org.hypergraphdb.HGStore.store(HGStore.java:119) at org.hypergraphdb.HGTypeSystem.addPrimitiveTypeToStore(HGTypeSystem.java:185) at org.hypergraphdb.HGTypeSystem.bootstrap(HGTypeSystem.java:234) at org.hypergraphdb.HyperGraph.open(HyperGraph.java:355) ... 3 more Java Result: 1 BUILD SUCCESSFUL (total time: 4 seconds) </code></pre> <p>I guess it's caused by the native API of the BerkeleyDB.</p> <p>According to the tutorial, in project options I supply the <code>-Djava.library.path=$HGDB_ROOT/lib/native/$PLATFORM</code> argument on Run card as a VM Option. Instead of the system variables I use full-path to the libraries. My OS in Windows7. I'm not sure about using slashes or backslashes or double-backslashes as a path-separator.?</p> <p>So a simply question is: how have I to set up the IDE for using the HypergraphDB?</p> <p>Thank you for advices!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload