Java - Exception in thread “main” java.lang.Error: Unresolved compilation problems

前端 未结 2 684
失恋的感觉
失恋的感觉 2020-12-21 05:26

I have some problem in my JDBC code. I am trying to connect through MySQL but it gives me an error. My error log is given below if you have some time.

Except         


        
相关标签:
2条回答
  • 2020-12-21 06:14

    This error happens when you use Eclipse as IDE and try to run code that doesn't even compile. Check your Problems view in Eclipse, and fix the compilation errors before executing the application.

    0 讨论(0)
  • 2020-12-21 06:30

    You are using a MySQL driver, but your class uses an Oracle BLOB class. Either use the Oracle JDBC driver, or use a different class for BLOB.

    Since your code mentions HSQL, MySQL and Oracle, you will probably want to get rid of the Oracle-specific BLOB implementation.

    0 讨论(0)
提交回复
热议问题