Solved

JDBC & JDeveloper

Posted on 2003-11-04
7
380 Views
Last Modified: 2012-06-21
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.getConnection("jdbc:oracle:thin:@xxx.xxx.xxx.xxx1521:EKKE8", user, pass);

I am using 1.4.0 and I use ojdbc14_g.jar from Oracle.

0
Comment
Question by:piou
  • 3
  • 3
7 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 9678659
>>and the following line of code throws a NoClassDef... exception.

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.
0
 

Author Comment

by:piou
ID: 9678695
Apologies... the actual error is an error, not an exception:

Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint


0
 
LVL 86

Accepted Solution

by:
CEHJ earned 100 total points
ID: 9678755
You probably have a JDK < 1.4, which is when Savepoint appeared.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 92

Expert Comment

by:objects
ID: 9681711
Post the full stack trace.
0
 

Author Comment

by:piou
ID: 9685150
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.

0
 

Author Comment

by:piou
ID: 9685162
indeed CEHJ... Thanks!!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9686236
:-)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 115
Need to track down Infection in a Server 2008 domain user profile 7 51
Java Options in Zimbra Server 2 52
type mismatch (Object[] to double[] 4 24
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question