Oh sorry, I executed

    java -cp "itext-1.4.7.jar;." Register

of course (Register.class is in the current directory!)

and the complete error message is

Exception in thread "main" java.lang.NoClassDefFoundError: Register (wrong name:
 com/lowagie/examples/general/copystamp/Register)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

I'm not a complete newbie but I'm not an expert!!
Can you please say me what's gone wrong???

Thanks!

-------- Original-Nachricht --------
Datum: Thu, 18 Jan 2007 09:20:13 +0100
Von: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
An: Post all your questions about iText here 
<[email protected]>
Betreff: Re: [iText-questions] java.lang.NoClassDefFoundError

> [EMAIL PROTECTED] wrote:
> > Hello!
> > I tried to compile and test the Register example
> >
> http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/copystamp/Register.java
> > 
> > but it didn't work!
> > 
> > My steps:
> > First compile...
> >    javac -classpath itext-1.4.7.jar Register.java
> > ...without an error message
> > 
> > and then try to run it
> >    java -cp itext-1.4.7.jar Register
> > 
> > Then i get following error message:
> > 
> >    Exception in thread "main" java.lang.NoClassDefFoundError: Register
> > 
> > What have I done wrong?
> 
> You only have the iText.jar in your CLASSPATH;
> you didn't include the directory where the JVM
> can find Register.class
> 
> > Can anyone tell me how i get that running?
> 
> If you're a newbie: start learning the basics of Java.
> If you're not a newbie: try getting a good night's rest.
> I only make this kind of errors when I haven't slept
> for a few days.
> br,
> Bruno
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to