Newbie: I am just trying to get the example code shown below to work. I am using Linux Ubuntu 12.04, NetBeans 7.2. The article link is here:
http://docs.oracle.com/javase/tutorial/jdbc/overview/index.html
I am getting “Cannot find symbol” error for the red squiggly lines shown below. All I’m trying to do is get that small snippet of code that is highlighted below to run, that’s it.



Add import statements to your Java program to import required classes in your Java code.Import JDBC Packages like this;