Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] error: bad class file - while compiling example

Milan Pandya

2007-07-03

Replies:

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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.