devrim baris acar wrote:
>
> Hi,
> I have been trying how I can use JNI from within a servlet. I have tried the
> code that comes
> with Apache-jserv. Servlets compile and run without any problem. The problem
> is with javah.
> After a successful compilation (i hope) when I try to make a C header file,
> it gives
> the error below.
Just to be sure... you didn't leave out any details here:
>
> The error output:
> [root@svrlinux1 muha]# javac SimpleServlet.java(no problem here)
> [root@svrlinux1 muha]# javah -jni SimpleServlet
> Signalled error "java/lang/NoClassDefFoundError" with detail
> "javax/servlet/http/HttpServlet"
> SimpleServlet: no such class
? Servlets come from an extension library, and you had that library in
the classpath for both javac and javah?
Nathan
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]