The iText jar provided only works with java 1.4 and above. See http://itext.ugent.be/library/question.php?id=19.
Paulo ----- Original Message ----- From: "Milan Pandya" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, July 03, 2007 8:32 PM Subject: [iText-questions] error: bad class file - while compiling example > Hello, > I am new to itext. I followed all the instructions found on itext website. > Things, I did were > 1. download itext-2.0.4.jar file and add it to my development library > 2. download HelloWorld.java file > 3. executing it. > > I did the above steps in windowsXP and it worked perectly... > But when I tried the same things in my unix enviornment, it gave me an > error message. > Below you can see the command I typed and the message I received > > ******************* > $javac -classpath itext-2.0.4.jar HelloWorld.java > HelloWorld.java:25: cannot access com.lowagie.text.Document > bad class file: itext-2.0.4.jar(com/lowagie/text/Document.class) > class file has wrong version 48.0, should be 47.0 > Please remove or make sure it appears in the correct subdirectory of the > classpath. > import com.lowagie.text.Document; > ^ > 1 error > > ********************** > > I made a few searches on net, but no luck. > > Thanks for your time > Milan ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
