This content has been marked as final. Show 3 replies
"The JAR file C:\ORACLE_HOME\jdbc\lib\ojdbc5.jar has no source attachment." is not the real error. Thats just your IDE telling you that it has no source files available for a class it is trying to step into, so it cannot show that source code.1 person found this helpful
Any error in Java is exposed as an exception being thrown. Look into Java exception handling to learn how to do proper error handling.
Vaib-acle wrote:1. If you're getting an error, isn't it obvious to you that you should paste in the exact, complete error message? Or did you think that there's only one kind of error that can possibly occur?
I am getting the error at 'rs.last()'.
2. Since you haven't provided any details, I'm just going to take a wild guess that you don't have a scrollable ResultSet. Did you actually read the docs for last() closely? Including the list of exceptions thrown and under what circumstances?