Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: What the hell is going on ?!?!?!?!?!?!?
if you don't have JDBC driver download from oracle website then You have have to set CLASSPATH=yourJDBC dll directory
Copy send sampal.com
Sam
monsri_at_my-deja.com wrote:
> 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 Mon Aug 02 1999 - 04:51:21 CDT