You are not allowed to declare package names the same as those in the standard JRE, but I can see no evidence that you have such a package name at all. Let's see what happens if I run your code:-That doesn't look like an ordinary hello world program, but as you see I am getting a different exception. I could probably obviate that exception by installing MySQL and adding that driver to the classpath. If explaining the classpath doesn't give a solution, I am starting to wonder whether your installation is faulty.
But I am not sure.
Anybody else got any ideas?