There we have it. You are overriding your CLASSPATH.
Read this excerpt from the java manual page:
*-cp* /classpath/
Specifies a list of directories, JAR archives, and ZIP archives
to search for class files. Class path entries are separated by
colons (:). Specifying*-classpath* or*-cp* overrides any
setting
of the*CLASSPATH* environment variable.
/Klas
Erik Tronstad skrev 20:59:
This is how I compile and run:
SET
CLASSPATH=\Programfiler\Java\jdk1.6.0_21\lib\tools.jar;S:\PROG_NT\Java\iText\iText-5.0.3.jar
C:\Programfiler\Java\jdk1.6.0_21\bin\javac -Xlint:unchecked
TestErikBildebehandling.java
C:\Programfiler\Java\jdk1.6.0_21\bin\java -cp .
TestErikBildebehandling
N:\Brukere\Tronstad\JAVA\PAR_filer\TestErikBildebehandling.PAR
The file
N:\Brukere\Tronstad\JAVA\PAR_filer\TestErikBildebehandling.PAR
contains some parameters for the program.
Erik
At 17:35 11.08.2010, Klas Lindbäck wrote:
Since you can compile it, the java compiler can successfully find and
read iText-5.0.3.jar.
How do you run the program afterwards?
Are you sure that you have the same CLASSPATH?
If you have a start script it is possible that it doesn't include the
iText jar... (Been there, done that)
/Klas
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/