Hi everybody!
I need to clarify something. I've created a simple application which connects to an Oracle db and executes a simple Select query. I work with Eclipse and when I run the app from within Eclipse, or I start it from the command prompt window, it goes all right but when I try to run an executable jar, connection fails and I am getting an error message: 'java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver'.
The oracle driver is added to my CLASSPATH variable. Is there anything I have to add to the jar?
Can anyone help?
Thanks,
Alex
I need to clarify something. I've created a simple application which connects to an Oracle db and executes a simple Select query. I work with Eclipse and when I run the app from within Eclipse, or I start it from the command prompt window, it goes all right but when I try to run an executable jar, connection fails and I am getting an error message: 'java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver'.
The oracle driver is added to my CLASSPATH variable. Is there anything I have to add to the jar?
Can anyone help?
Thanks,
Alex