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 |