Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#35 Cannot connect to the ResearchCyc

open
nobody
5
2006-01-25
2006-01-25
Jordi Conesa
No

Hello,

I am trying to write a Java program to access to the
ResearchCyc using its API. The problem is that the
call of the CycAccess constructor never finish.

I have also tried programs that used to run with
previous versions of Opencyc, and they do not work
either. The problem is that these programs do not
connect to Opencyc now, so maybe the problem lays on
any class incompatibility. I am using Windows XP with
the Service pack 2, and Java 1.5.

A include below a fragment of the related code:

package WS;

import java.io.*;

import org.opencyc.api.CycAccess;

public class WCS {

protected static CycAccess cycAccess;

public static void main(String[] args) throws
Exception
{

System.out.println("To connect to the
Cyc ...");
OpenTheCycKB RCyc = new OpenTheCycKB();
RCyc.Open_TheCycKB();

System.out.println("Program finished...");

}
}

Thanks in advance,

Discussion

  • Jordi Conesa
    Jordi Conesa
    2006-01-25

    The attached file is the fille called for the fragment of code of the error description and it is the responsible to connect to the ResearchCyc ontology.

     
    Attachments
  • Kaizhi Tang
    Kaizhi Tang
    2006-02-14

    Logged In: YES
    user_id=1164278

    I had the same problem before. Right now, it works using
    opencyc in Linux. Your java programs (as client) can be on
    windows.