From: Joerg K. W. <we...@in...> - 2004-09-08 14:15:29
|
Dear Nikolaus, > I just started playing around with JOELib and Eclipse and after a few hours of > work had the joelib.jar in eclipse running. For a first test I copied the > TestSMILES.java file into Eclipse and started the project. great ! I'm working under eclipse, too. BUT i'm not using their build mechanism, i'm using only and directly ant in eclipse. If i understand you correctly you have managed to use JOELib with the build mechansim in eclipse. If you have time you can send a detailed installation report how doiing this to this list. The problem are the text definition and properties file, because they must always be copied to the build directory also. > It runs fine until it arrives in the > instance.loadfiletypes() > function where I get in > mfType = JOEFileFormat.getMoleculeFileType(ioType); > the following error: > java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException > mfType = (MoleculeFileType) Class.forName(type.getRepresentation()) > .newInstance(); > for PDF. All the other file extension before are working ! This means that the required itext-0.94.jar library is missing. Please check your classpath. If you are using ANT you do not need such things, not for testing examples. You need these libraries only to avoid error messages in the source code editor. This will allow you also the autocompletion when typing: mol. to mol.beginModify() mol.deleteHydrogens() ... > Since I am new to JAVA and JOELib (I worked mainly with OpenBabel and C++ > before) I really do have a problem here and any kind of help is appreciated. No problem, i've started with OELib (now: OpenBabel), too. The difference is not too big > Many thanks in advance, Was me a pleasure, Joerg -- Dipl. Chem. Joerg K. Wegner Center of Bioinformatics Tuebingen (ZBIT) Department of Computer Architecture Univ. Tuebingen, Sand 1, D-72076 Tuebingen, Germany Phone: (+49/0) 7071 29 78970 Fax: (+49/0) 7071 29 5091 E-Mail: mailto:we...@in... WWW: http://www-ra.informatik.uni-tuebingen.de -- Never mistake motion for action. (E. Hemingway) Never mistake action for meaningful action. (Hugo Kubinyi,2004) |