Knute Snortum wrote:I just tried to compile and execute your code, and I was able to get it to run. So your code is not the problem.
* Are you CD'd into the directory with the JDBCTestConnection3.class file?
* While in the directory, do you issue the command java JDBCTestConnection3 ?
Campbell Ritchie wrote:So, it appears the class compiled correctly, otherwise you would have had error messages. Please confirm you have that .class file in this location with the dir command (Windows®) or ls (Unix/OSX/Linux).
You probably should have given that class a package name, which you can read about in the Java™ Tutorials, but stick to one problem at a time and don't change anything else until you get your code to run. I presume you have altered the arguments for the connection to keep your details private.
Campbell Ritchie wrote:Did that class compile normally? I so, where is the .class file? Did you give your class a module/package name?