Well then,
> The KIM version is kim-platform-1.7.12.15.
So you have the lastest official version that is onsite.
> And i don't install the tomcat,
> because i just use KIM in my java application rather than using the
> browser plug-in and the web UI. And i use the sesame build-in-model, so i
> did not start-up the sesame server.
These are absolutely OK.
> The java enviroment i used is the most
> current version JDK 1.6.0.
We recently detected some problems when running KIM Server itself using
JDK16. There are too many changes in JDK16 and I'm not sure wheter it is
backward compatible with JDK15. So this is my first recommendation -
downgrade to JDK15 or if you have one already installed just configure KIM
to use it instead of JDK16. Also compile and run the examples with JDK15
too.
> And i run the programm on windows XP
> professional laptop.
Well, your PC characteristics actually don't matter in this case. What I
meant by "environment" was the IDE/compiler (JBuilder, Idea, eclipse) that
you use is you run the examples from within it as each IDE has its
specifics.
> There is nothing wrong logged in the logs of the KIM
> server.
Yeah, but this still doesn't mean everything is OK :-/
> Further more, in order to run the example, i built a new project, which
> slight changing some code. the only change is that i did not use the
> public static void main(String[] args)
> in each example. I put the code in this main fucntion into the each
> constructor, and in my main fucntion i call the different constructors
> like below:
>
> public class Main {
>
> public Main() {
>
> //ConnectionTest testC = new ConnectionTest();
> //DocumentGeneration document = new DocumentGeneration();
> //AnnotationDocumentAndText textADT = new
> AnnotationDocumentAndText();
> //InspecDocumentFeaturesAndAnnotation idfa = new
> InspecDocumentFeaturesAndAnnotation();
> //ConstructSemanticQueries csqs = new ConstructSemanticQueries();
> SearchForEntities sfe = new SearchForEntities();
> //SearchForDocuments sfd = new SearchForDocuments();
> }
>
> /**
> * @param args the command line arguments
> */
> public static void main(String[] args) {
> Main beginTest = new Main();
> }
> }
>
> I think this only change should be fine.
Yes, it is. You have to reffer some libraries in the project, but since you
succeed compiling the examples code you obviously do.
> the full exception stack trace with some specification is in the two
> attachments.
It seems to me from these logs that you haven't included those libs I
mentioned above in the classpath of your application. If you run the client
to KIM Server (the compiled example) on the same machine you may onle refer
them. And if you run it on another machine you have to physically copy them
there and refer them in the client's classpath:
KIM-api.jar (resides in the KIM's main folder)
gate.jar (resides in the KIM/lib folder)
sesame.jar (resides in the KIM/lib folder)
So this is my second recommendadion - to inspect and include these libs in
the classpath used to run the examples. But the first recommendation about
JDK16 is important too - take care of it as it may be inflicting unknown
problems.
> Thanks very much! looking forward to hearing from you soon.
One more thing, please, send your further questions or problems to the
KIM-disscusion mailing list (which is in the CC), thus more people except me
will be able view them and answer.
HTH,
Ilian
_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this
mailing list.
KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com