From: Kal A. <ka...@te...> - 2006-01-30 21:49:16
|
Hi Magnus Your import is wrong. The Topic interface is actually defined in the = package org.tm4j.topicmap. Change your import to: import org.tm4j.topicmap.*; (or better: import org.tm4j.topicmap.Topic; ) Cheers Kal > -----Original Message----- > From: tm4...@li... [mailto:tm4j-users- > ad...@li...] On Behalf Of Magnus Folger=F8 > Sent: 30 January 2006 19:35 > To: Lars Heuer > Cc: tm4...@li... > Subject: Re: [TM4J-users] Need help getting started using TM4J >=20 > it's as simple as this, but "Topic cannot be resolved to a type" >=20 >=20 > /*****************************************/ > import org.tm4j.*; >=20 > public class MyClass { >=20 > Topic tp; > /** > * @param args > */ > public static void main(String[] args) { > // TODO Auto-generated method stub >=20 > }//main >=20 > }//class > /*****************************************/ >=20 > Lars Heuer wrote: > > Hi Magnus, > > > > > >>thx for the reply! alas, I still don't get it rigth: > > > > > >>I'm not quite sure which .jar to add in the build-path, so I just = added > >>the lot. But I'm not able to use classes like TopicMap [TopicMap = cannot > >>be resolved to a type] > > > > [...] > > > >>$ cat tm4j_test/.classpath > > > > [...] > > > > Cannot see a failure here. > > > > Are you trying to work with TMAPI? > > > > What kind of imports do you have in "MyClass.java"? > > > > Can you post an excerpt of your class? > > > > Best regards, > > Lars >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK! > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D= 121642 > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users >=20 |