This is what i get when i try to run my program ..
I am also getting:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
In the comments you mention:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
This means that you are trying to use a class that was compiled for a newer version of Java on an older version.
You are probably trying to run this on Java 5 or older while you are using an Oracle JDBC driver JAR file that was compiled for Java 6.
Run it on a newer version of Java, or make sure you use a version of the Oracle JDBC driver that is supported on the Java version that you are using.
The IDE is looking for main class to execute (ie it is trying to load java main) . try searching for setting and reset it with your class name or change class name to main.
and class name should start from CapitalLetter
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.