CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 class not found exception in winndows with oracle

Print topic Send  topic

Author Message
vasavi

Posts: 3
Posted: 12/17/2007, 5:02 AM

hi

import java.sql.*;
public class Db1
{
public static void main(String a[]) throws Exception
{
Class.forName("oracle.jdbc.driver.OracleDriver");
//Driver drv=new oracle.jdbc.driver.OracleDriver();
//DriverManager.registerDriver(drv);
Connection con=DriverManager.getConnection("jdbc.oracle:thin:@localhost:1521:orcl","scott","tiger");
System.out.println("concls->"+con.getClass());

}
}



E:\work>javac Db1.java

E:\work>java Db1
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.
OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at Db1.main(Db1.java:6)

E:\work>


how to solve this?
View profile  Send private message
matheus

Posts: 386
Posted: 12/18/2007, 3:03 AM

Where is relationship with Codecharge in this topic?
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
vasavi

Posts: 3
Posted: 12/18/2007, 3:46 AM

i donot get wht is tht
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.