From: <mag...@st...> - 2006-01-18 12:40:59
|
hi guys I need help setting up TM4J on my Linux system. I want to start using TM4J with Eclipse, but it's been a while since the last time I did anything with Java, so I'm kinda rusty... Problem is that I can't even remember how to use imported libs like tm4j :/ how do I install tm4j on my system, and how do I create a project in eclipse that finds tm4j? I found the docs on the web kinda short and incomplete... -- best regards Magnus |
From: Lars H. <he...@se...> - 2006-01-18 13:05:12
|
Hi Magnus, [Eclipse] > Problem is that I can't even remember how to use imported libs like tm4j :/ File -> New -> Project -> Java Project I prefer to create a folder "libs" where I copy the needed .jars and then you can do a right click on the .jars and add them via Build Path -> Add to Build Path. An alternative might be to have the TM4J in its own project and create a dependency between your project and the TM4J project. I.e. via: <https://sourceforge.net/mailarchive/message.php?msg_id=13951686> HTH and best regards, Lars -- http://semagia.com |
From: <mag...@st...> - 2006-01-25 14:02:10
|
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] my sourcetree looks like this: $ tree -a tm4j_test/ tm4j_test/ |-- .classpath |-- .project |-- bin | `-- MyClass.class |-- libs | |-- ant.jar | |-- antlr.jar | |-- commons-beanutils.jar | |-- commons-collections.jar | |-- commons-digester.jar | |-- commons-logging.jar | |-- hibernate | | |-- ************* | |-- jakarta-regexp.jar | |-- jargs.jar | |-- junit.jar | |-- log4j-1.2.8.jar | |-- lucene-1.3-final.jar | |-- mango.jar | |-- optional.jar | |-- ozone | | |-- log4j-1.2.jar | | `-- ozone-1.1.jar | |-- resolver.jar | |-- tm4j-0.9.7.jar | |-- tm4j-tmapi-0.9.7.jar | |-- tm4j-tologx-0.9.7.jar | |-- tm4jadmintool-0.9.7.jar | |-- tm4jdbc-0.9.7.jar | |-- tm4ozone-0.9.7.jar | |-- tmapi-1_0.jar | |-- tmapi-test-1_0.jar | |-- xercesImpl.jar | `-- xmlParserAPIs.jar `-- src `-- MyClass.java ...and my .classpath: $ cat tm4j_test/.classpath <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="lib" path="libs/ant.jar"/> <classpathentry kind="lib" path="libs/antlr.jar"/> <classpathentry kind="lib" path="libs/commons-beanutils.jar"/> <classpathentry kind="lib" path="libs/commons-collections.jar"/> <classpathentry kind="lib" path="libs/commons-digester.jar"/> <classpathentry kind="lib" path="libs/commons-logging.jar"/> <classpathentry kind="lib" path="libs/jakarta-regexp.jar"/> <classpathentry kind="lib" path="libs/jargs.jar"/> <classpathentry kind="lib" path="libs/junit.jar"/> <classpathentry kind="lib" path="libs/log4j-1.2.8.jar"/> <classpathentry kind="lib" path="libs/lucene-1.3-final.jar"/> <classpathentry kind="lib" path="libs/mango.jar"/> <classpathentry kind="lib" path="libs/optional.jar"/> <classpathentry kind="lib" path="libs/resolver.jar"/> <classpathentry kind="lib" path="libs/tm4j-0.9.7.jar"/> <classpathentry kind="lib" path="libs/tm4jadmintool-0.9.7.jar"/> <classpathentry kind="lib" path="libs/tm4jdbc-0.9.7.jar"/> <classpathentry kind="lib" path="libs/tm4j-tmapi-0.9.7.jar"/> <classpathentry kind="lib" path="libs/tm4j-tologx-0.9.7.jar"/> <classpathentry kind="lib" path="libs/tm4ozone-0.9.7.jar"/> <classpathentry kind="lib" path="libs/tmapi-1_0.jar"/> <classpathentry kind="lib" path="libs/tmapi-test-1_0.jar"/> <classpathentry kind="lib" path="libs/xercesImpl.jar"/> <classpathentry kind="lib" path="libs/xmlParserAPIs.jar"/> <classpathentry kind="output" path="bin"/> </classpath> Lars Heuer wrote: > Hi Magnus, > > [Eclipse] > >>Problem is that I can't even remember how to use imported libs like tm4j :/ > > > File -> New -> Project -> Java Project > > I prefer to create a folder "libs" where I copy the needed .jars and > then you can do a right click on the .jars and add them via Build > Path -> Add to Build Path. > > An alternative might be to have the TM4J in its own project and create > a dependency between your project and the TM4J project. > I.e. via: > <https://sourceforge.net/mailarchive/message.php?msg_id=13951686> > > HTH and best regards, > Lars |
From: Lars H. <he...@se...> - 2006-01-29 21:40:28
|
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 -- http://semagia.com |
From: <mag...@st...> - 2006-01-30 19:35:40
|
it's as simple as this, but "Topic cannot be resolved to a type" /*****************************************/ import org.tm4j.*; public class MyClass { Topic tp; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub }//main }//class /*****************************************/ 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 |
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 |
From: <mag...@st...> - 2006-01-30 22:02:26
|
thanks guys! I see now that I obviously should have been able to get that out of the javadocs.. oh well. I'm off to re-implement a large topicmap application based on Python, using TM4J. Huess you'll be hearing a lot from me the next couple of months ;) Kal Ahmed wrote: > 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ø >>Sent: 30 January 2006 19:35 >>To: Lars Heuer >>Cc: tm4...@li... >>Subject: Re: [TM4J-users] Need help getting started using TM4J >> >>it's as simple as this, but "Topic cannot be resolved to a type" >> >> >>/*****************************************/ >>import org.tm4j.*; >> >>public class MyClass { >> >> Topic tp; >> /** >> * @param args >> */ >> public static void main(String[] args) { >> // TODO Auto-generated method stub >> >> }//main >> >>}//class >>/*****************************************/ >> >>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 >> >> >>------------------------------------------------------- >>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=lnk&kid=103432&bid=230486&dat=121642 >>_______________________________________________ >>Tm4j-users mailing list >>Tm4...@li... >>https://lists.sourceforge.net/lists/listinfo/tm4j-users >> > > > > > > ------------------------------------------------------- > 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=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > https://lists.sourceforge.net/lists/listinfo/tm4j-users |
From: Lars H. <he...@se...> - 2006-01-31 15:43:16
|
Hi Magnus, [...] > I'm off to re-implement a large topicmap application based on Python, > using TM4J. Huess you'll be hearing a lot from me the next couple of > months ;) Another possibility is to use the TMAPI interfaces, so you're independent of the TM4J API and you can port the application to other topic map engines. Have a look at http://tmapi.org/ Best regards, Lars -- http://semagia.com |