Thanks, Michael!

As already stated in another posting based on input for Klas, I 
understood I had to do something with my "cp" parameter. That solved 
my (very basic and elementary, I now understand) problem.

Erik :)

At 09:41 12.08.2010, you wrote:

>Erik,
>
>Erik Tronstad wrote:
> > I must admit I have only a very limited knowledge of Java. But excluding
> > "-cp ." makes Java give the error message "Could not find the main class:
> > TestErikBildebehandling. Program will exit.".
>
>"-cp ." tells Java to seach for classes (other than those which come with
>the runtime) in the current directory and its subfolders. As you compile
>TestErikBildebehandling.java in that very directory, your
>TestErikBildebehandling.class is there.
>
>On the other hand you also need iText on your classpath.
>
>What you need is something along the lines of "-cp
>.;S:\PROG_NT\Java\iText\iText-5.0.3.jar" instead of your "-cp ."...
>
>Regards,   Michael.
>--
>View this message in context: 
>http://itext-general.2136553.n4.nabble.com/Why-ClassNotFoundException-on-BadElementException-tp2321105p2322313.html
>Sent from the iText - General mailing list archive at Nabble.com.
>
>------------------------------------------------------------------------------
>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/

Reply via email to