This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I had written java program to establish a connection to the database(Oracle 10g) and using it through Swing application.But getting problem with JSP. I just want to know that how the above java file is used through JSP. I had already copied the classes12.jar file to ext\lib folder under java directory and also under tomcat dir.
I had already copied the classes12.jar file to ext\lib folder under java directory and also under tomcat dir.
Putting in in the Java and/or Tomcat directory will not help. It needs to be in a specific place within either the tomcat directory structure or within your application. Which depends on how you are trying to connect to the database.
Show us your code for connecting to the database and we can point you in the right direction.
i am assuming you get a ClassNotFoundException? if so, the lib\ext should work. remember if you are on windows, there is a jre\lib\ext where the jre is installed and there is another one where the JDK is installed. make sure your JAVA_HOME is set in the catalina.bat to point to the *correct* lib\ext.
<a href="http://www.J2EETraining.com" target="_blank" rel="nofollow">J2EE Training / Java EE Training ... Learn Java EE </a>