What the hell is going on ?!?!?!?!?!?!?
From: <monsri_at_my-deja.com>
Date: Fri, 23 Jul 1999 11:44:32 GMT
Message-ID: <7n9kiv$kf5$1_at_nnrp1.deja.com>
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.
Date: Fri, 23 Jul 1999 11:44:32 GMT
Message-ID: <7n9kiv$kf5$1_at_nnrp1.deja.com>
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 - 13:44:32 CEST