S
Steven Green
I am trying to get my application to run outside of Eclipse.
I use JDBC and load a driver at runtime.
The application works fine in the IDE where I have the driver jar file
specified, but if I try to run the application outside of Eclipse it fails.
I have tried this on both Linux and Windows XP with the same result.
"Class not found" when trying to load the driver.
I have used -cp, -classpath, and CLASSPATH (environment variable) with the
same result. The driver jar file is not being registered.
I listed the System Properties and printed out all the values under both
eclipse and outside of eclipse. Inside Eclipse the jar is listed properly
under the classpath, but outside (no matter how I specify it) it isn't
registering.
A search of the web found a similar problem, but no resolution.
Any ideas?
Thanks,
Steve
I use JDBC and load a driver at runtime.
The application works fine in the IDE where I have the driver jar file
specified, but if I try to run the application outside of Eclipse it fails.
I have tried this on both Linux and Windows XP with the same result.
"Class not found" when trying to load the driver.
I have used -cp, -classpath, and CLASSPATH (environment variable) with the
same result. The driver jar file is not being registered.
I listed the System Properties and printed out all the values under both
eclipse and outside of eclipse. Inside Eclipse the jar is listed properly
under the classpath, but outside (no matter how I specify it) it isn't
registering.
A search of the web found a similar problem, but no resolution.
Any ideas?
Thanks,
Steve