The classpath should be ".:./itext-0.96.jar:./itext-xml-0.96.jar" if you want to compile files in the current directory.
Best Regards, Paulo Soares > -----Original Message----- > From: Alle Meije Wink [SMTP:[EMAIL PROTECTED]] > Sent: Sunday, January 12, 2003 3:22 > To: [EMAIL PROTECTED] > Subject: [iText-questions] examples > > Hi there, > > I haven't touched either itext or java for some time, and I tried > starting with one of the examples again. I know I have written about > this before > > ( > http://www.mail-archive.com/[email protected]/msg01950 > .html > http://www.mail-archive.com/[email protected]/msg01958 > .html) > > But the 'compile' script in Brunos answer to that question does not work > for me. Your advice, Bruno, was that usually, Exceptions are cused by > classpath errors. Well, I have this situation: > > RedHat linux > and, in the current directory: > > bash-2.05b$ ls > Chap0101.java compile itext-0.96.jar itext-xml-0.96.jar > > So, the 1st example from the tutorial, the 'compile' script, and the two > jar files. The compile script for Linux should read (I think): > > " > javac -classpath ./itext-0.96.jar:./itext-xml-0.96.jar $1.java > java -classpath ./itext-0.96.jar:./itext-xml-0.96.jar $1 > " > > If I run 'compile Ch0101', I get: > > bash-2.05b$ compile Chap0101 > Exception in thread "main" java.lang.NoClassDefFoundError: Chap0101 > > is this a class path error? > > I think it has got to do with java, some part of the syntax that I'm > missing. Is it an idea to include an example of compiling and running > the tutorial programs? > > Regards > Alle Meije Wink > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
