dcsimg
While using Apache Tomcat4.1.18, where should I place the .c(VC++ file) and .dll file created in Tomcat Directory structure?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhishek_Agrawal
Posted On:   Tuesday, February 17, 2004 12:24 AM


We are doing an academic project where we want to communicate with parallel port using Java Servlets. So we are using JNI and Servlets for that.


Our problem is that whenever we try to run Servlet from Tomcat than we got error NoClassDefFoundException


The platform we are using is Windows 98 and we are currently placing the .c and .dll files in C:Program FilesApache roupTomcat4.1.18webappsexamplesWEB-INFclasses folder.


Kindly tell us procedure to call native code from Servlet

Re: While using Apache Tomcat4.1.18, where should I place the .c(VC++ file) and .dll file created in Tomcat Directory structure?

Posted By:   R_H  
Posted On:   Tuesday, March 23, 2004 02:42 PM

too many questions at once.

First glue is - take care about directories like C:Program FilesApache roup - because class loader doesn't work well on dirs with SPACES (this can fix your "class not found" problems)

second glue - there is already java comm library for serial/paralel communication so you don't need to do it again.
But if this is point of your work - then investigate how to load native library from java :)) ( hint: loadLibrary :))
About | Sitemap | Contact