Thanks a lot! :) :) :) Though must be a small error in your quote: Class path entries must be separated by a SEMIcolon, not colon, as far as I can understand.
Anyhow, my problem is solved. :) Changed my Java call to: C:\Programfiler\Java\jdk1.6.0_21\bin\java -classpath N:\Brukere\Tronstad\JAVA\Programmer;C:\Programfiler\Java\j2sdk1.5.0\lib\tools.jar;S:\PROG_NT\Java\iText\iText-5.0.3.jar TestErikBildebehandling N:\Brukere\Tronstad\JAVA\PAR_filer\TestErikBildebehandling.PAR That made it! No more error messages at run time. :) My small inital code snippet, finding the dpi in the X direction of a TIFF image even works. :) Erik At 09:24 12.08.2010, you wrote: >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/ ------------------------------------------------------------------------------ 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/
