Package oracle jdbc driver does not exist


















Improve this question. For starters, the interpretation of "classpath" is dependent on the way how exactly your program is executed. So it might be helpful if you elaborate in detail how exactly you're executing your program, so that we can tell you the right way to set the classpath. But still the error persists — user Show 5 more comments. Active Oldest Votes. You have to add ocjdbc jar in to your class path and try it like this. Improve this answer.

Using a full qualified class name XOR using an import does not matter. Adding a jar of course might help Note that this isn't the idiomatic way of locaing a JDBC driver OP's own code also not, but you should preferably not continue on the wrong idiom.

Note that OP's own code had a throws SQLException clause which makes the try-catch superfluous, so that's definitely not "the solution". Add a comment. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Linked 2. But I kept getting the error msg on package does not exist. I already already set my classpath to the classes Please help. Error message: testOCI. Join our community to see this answer! Unlock 1 Answer and 11 Comments. Andrew Hancock - VMware vExpert. Asked 2 years, 1 month ago. Active 2 years, 1 month ago. Viewed 72 times. What should I do? Here is the code Below. Improve this question. Regina Kang Regina Kang 2 2 silver badges 9 9 bronze badges. Have you checked this?



0コメント

  • 1000 / 1000