Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] error while compiling HelloWorld.java

Milan Pandya

2007-07-17

Replies:

Hello,
 This question was posted before by me and thanks for replying it. I did manage to solve most of the issues. This is what I did,
 I downloaded the source files from svn repository. I performed  "ant jar" and it build successfully. It created itext.jar and build folder inside which there is a com folder.
 Now, i took the HelloWorld.java program from itext website and I tried to compile. It gave me errors as below
**************
javac HelloWorld.java
HelloWorld.java:25: cannot access com.lowagie.text.Document
bad class file: ./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

*****************

the java version on my unix machine is 1.4.2_05
To make things simpler, I kept itext.jar,com folder and HelloWorld.java in the build directory. So the compiler does not go out looking for stuff.

Any suggestions ?

thanks
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.