--
Youngho Cho wrote:
> Hi,
> I worked servlet alias without problem until ApacheJServ-1.0b4 version in Linux
> But afrer installed ApacheJServ-1.0 , I have a problem.
>
> If I set up the servlet alias like in the example.properties file
>
> ....
> repositories=/usr/local/src/ApacheJServ-1.0/example
> ....
> servlet.HELLO.code=Hello
> ...
>
> Then It works.
>
> But if I make aaa directory under example , move to Hello.class file to aaa directory
> and changed the example.properties file like
>
> ....
> repositories=/usr/local/src/ApacheJServ-1.0/example
> ....
> servlet.HELLO.code=aaa.Hello
> ...
>
> Then NoClassDefFoundError happened!.
>
> How can I solve this problem???
>
> Thanks
>
> youngho
> N<.nÇ+?·£jös¥§!zë®Ê'-+-ÂSäSx¢¢dèº{.nÇ+?·£jös¥§!zë®Ê~X¬·
> +?)àv^,r??Ü?+Þ±©Ý:Ø^®m§ÿãjös¥§!zSàþf¢YùsSXms_Ï®?åzk#¢|(®H§?Ú ±Ê&
When you put things in subdirectories under a directory listed in a "repositories"
setting (or under a directory listed in the CLASSPATH, for that matter), you are
telling
Java that this class belongs to a package. To make this work, you would need to add
the
line "package aaa" at the top of Hello.java and recompile it.
Further information on how Java packages work can be found (among other places) in the
Java Language Tutorial:
http://java.sun.com/docs/books/tutorial
Craig McClanahan
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]