Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

SUO: OpenCyc ApiDemo




Below are some mundane notes I just sent to the SourceForge list.

The notes simply describe how I got OpenCyc's ApiDemo program to work. 

If you all would rather not see these kinds of notes on the 
SUO list, please drop me a line off-list, and I will confine these
kinds of postings to the SourceForge list.

Jim

-------------------------------------------------------------------

For what it may be worth, I'd like to share some info
on getting the ApiDemo to run. It's rather elementary
but it may be useful to some.

I'm using build Blackdown-1.3.1-FCS for my JRE on Redhat,
and I started opencyc with the run-cyc.sh script.

1) It seems I needed to get some org.apache.oro files.
   Whether we really need to go fetch these, maybe a cyc developer
   could let us know? If so, it would be nice to see this fact
   put into the README.

   I went to http://jakarta.apache.org/builds/jakarta-oro/release/v2.0.6/
   and got jakarta-oro-2.0.6.tar.gz, in which is the jakarta-oro-2.0.6.jar
   file.

2) That jar file now lives on my machine at 
   /path-to-opencyc/opencyc-0.6.0/lib, along with the OpenCyc.jar file.

3) I unjarred both jar files, so that now under 
   /path-to-opencyc/opencyc-0.6.0/lib there lives also an org directory, 
   under which are apache and opencyc directories.

4) From /path-to-opencyc/opencyc-0.6.0/lib/ I went to org/opencyc/api.

5) With my CLASSPATH=/path-to-opencyc/opencyc-0.6.0/lib/jakarta-oro-2.0.6.jar:
   /path-to-opencyc/opencyc-0.6.0/lib/OpenCyc.jar, I tried running
   the ApiDemo as follows: "java ApiDemo". That gave the following error
   java.lang.NoClassDefFoundError: ApiDemo.

6) Keeping the CLASSPATH the same, I tried running the demo as follows:
   "java org/opencyc/api/ApiDemo".  That worked.

I'm not sure all these steps are necessary, but the above
(finally) did work for me.

Jim (jim@spatial.maine.edu)


-------------------------------------------------------------------