Oscar Sanjuán Martínez wrote:
I'm writing a servlet to access data stored in a Yasmine Data Base. my code is: public void service( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException{
ServletOutputStream out = res.getOutputStream();
res.setContentType( "text/html" );
try{
out.println( "<html><body>" );
db=new jp.jasmine.japi.Database();<----------------(Problem)
db.startSession();
db.startTransaction();
//code.....
db.endTransaction();
db.endSession();
}catch(Exception e){out.println("Error: " + e);}
out.println( "</body></html>" );
}
The program start working and when a try to create a new Database Object throws the exception :
Error: java.lang.ClassNotFoundException: jp.jasmine.japi.Database, Servlets folder=E:\InetPub\ServletExec ISAPI\Servlets\
my Servlet class is stored in the Servlet directory and I've put jp.jar and pj.zip files in the Servlet directory also.
thanks,
Oscar Sanjuán.
