PC size does matter! wrote:
>thanks a million for responding so quickly to my dumb
>questions...i still can't get it to work...
>
>I believe I have the settings as you say, I read the
>FAQs, I did google searches on the subject, etc. but I
>am still doing something stupid…
>
>itext-1.3.jar was downloaded into directory:
>c:\jtjava\JTiText1.3.jar
>
>
Why is it called JTiText1.3.jar?
What does this JT mean???
>with the path and classpath set, javac an java are
>found...so i do the following to compile:
>(from the c:\jtjava prompt)
>
>C:\jtjava>javac HelloWorld.java
>
>then i execute and get errors...
>(from the c:\jtjava prompt)
>
>C:\jtjava>java HelloWorld
>Exception in thread "main"
>
java.lang.NoClassDefFoundError: HelloWorld (wrong nam
>e: com/lowagie/examples/general/HelloWorld)
>
Now I see.
You don't know the concept of Java packages.
HelloWorld is in a package com.lowagie.examples.general
This means the CLASSPATH must point to
c:\jtjava (or . you have this right)
but the HelloWorld.class must be in
c:\jtjava\com\lowagie\examples\general\
and you have to run the example like this:
java com.lowagie.examples.general.HelloWorld
(just like you should have compiled it like this:
javac com/lowagie/example/general/HelloWorld.java )
Anyway: if you had started from the start
and used the ANT build file, you wouldn't have
had this problem, because all paths are set in ANT.
Please don't try to run before learning to walk.
br,
Bruno
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions