Your eclipse is running the class “com.mysql.cj.jdbc.admin.TimezoneDump” (which also contain a main method) instead of your MainApp class.
Try this manipulation:
Right click on MainApp.java -> Run As -> Java Application
More Related Contents:
- JavaEE, Jboss, Empty string somewhere [closed]
- How do I get a result across 2 tables
- Android: If statement being skipped even if condition is correct
- How to convert epoch to mySQL timestamp in JAVA
- Hibernate 5 :- org.hibernate.MappingException: Unknown entity
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- right syntax to use near ‘?’
- How to store Java Date to Mysql datetime with JPA
- Running a .sql script using MySQL with JDBC
- Docker: Combine multiple images
- Prevent SQL injection attacks in a Java program
- The server time zone value ‘AEST’ is unrecognized or represents more than one time zone
- java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x91\xBD\xF0\x9F…’
- LINQ for Java tool [closed]
- @GeneratedValue polymorphic abstract superclass over MySQL
- Connection Java – MySQL : Public Key Retrieval is not allowed
- MySQL select coordinates within range
- runtime error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- JDBC returning MySQLSyntaxError Exception with correct statement
- Java + Mysql UTF8 Problem
- Problems reading/writing UTF-8 data in MySQL from Java using JDBC connector 5.1
- Hibernate Criteria Query to get specific columns
- com.mysql.jdbc.PacketTooBigException
- Create MySQL database from Java
- com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server [duplicate]
- Hibernate: Create Mysql InnoDB tables instead of MyISAM
- Should a database connection stay open all the time or only be opened when needed?
- Is there a more efficient way of making pagination in Hibernate than executing select and count queries?
- Performance of MySQL Insert statements in Java: Batch mode prepared statements vs single insert with multiple values
- Getting last record from mysql