Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> What the hell is going on ?!?!?!?!?!?!?
Hello here,
I have a Java class file I can execute in a certain directory,
but it fails in another. It performs a simple connection to
an Oracle db (this is a test script) and output -with 'System.
out.println()'- the result of the query.
I noticed something pretty amazing: when I try to execute the same file IN ANOTHER DIRECTORY, I get the "No suitable driver" error message (coming from my 'catch(SQLException e) {
System.err.println(e.getMessage);'piece of code).
Of course my environment is exactly the same (it just takes to copy the file in the next subdirectory to make it fail), I use the "java -classpath . Lookup" command line in both cases (but it fails too whatever the options I put anyway)...
Did anybody already encounter this behaviour ?!?!?!? Any idea ?!?
Thanks a lot for any enlightenment !
Regards,
Spendius
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Fri Jul 23 1999 - 06:43:46 CDT
![]() |
![]() |