piou
asked on
JDBC & JDeveloper
After the failure of a test application, connecting to a remote Oracle database, I am trying to locate the portion of the Java source (generated by JDeveloper 9) that loads the driver and connects to the database. I can find nothing. Is there such code, or does JDev do a lot of hidden work?
I am asking because I also try to connect "manually", and the following line of code throws a NoClassDef... exception.
DriverManager.getConnectio n("jdbc:or acle:thin: @xxx.xxx.x xx.xxx1521 :EKKE8", user, pass);
I am using 1.4.0 and I use ojdbc14_g.jar from Oracle.
I am asking because I also try to connect "manually", and the following line of code throws a NoClassDef... exception.
DriverManager.getConnectio
I am using 1.4.0 and I use ojdbc14_g.jar from Oracle.
ASKER
Apologies... the actual error is an error, not an exception:
Exception in thread "main" java.lang.NoClassDefFoundE rror: java/sql/Savepoint
Exception in thread "main" java.lang.NoClassDefFoundE
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Post the full stack trace.
ASKER
This is very strange. I had installed 1.4.0, but now I see that the default jre is 1.3.1! I suspect JDev messed it up. I will reinstall 1.4 and get back.
ASKER
indeed CEHJ... Thanks!!
:-)
Meaning which class?
If you put the driver jar in all lib\ext directories you should be OK if it's the driver class that's the problem.