简体   繁体   English

JDBC在eclipse中给出了很多错误

[英]JDBC gives a lot of errors in eclipse

在此输入图像描述

As you see there's a lot of errors in the project! 如您所见,项目中存在很多错误! However, the program runs well :) but I want to remove this errors or at least know its reason 但是,该程序运行良好:)但我想删除此错误或至少知道其原因

In Eclipse you have the Problems tab available on one of the panes, this should list the reasons for all the errors in your screenshot. 在Eclipse中,您可以在其中一个窗格中找到“ 问题”选项卡,这应列出屏幕截图中所有错误的原因。 You need to look at that list which will explain why each error is present and then investigate them from there. 您需要查看该列表,该列表将解释每个错误存在的原因,然后从那里进行调查。

"To add the Problems view to the current perspective, Window > Show View > Other... > General > Problems." “要将Problems视图添加到当前透视图,Window> Show View> Other ...> General> Problems。”

I think you extracted the jar file from mysql driver and then imported the extracted files into the project. 我想你从mysql驱动程序中提取了jar文件,然后将提取的文件导入到项目中。 Instead, create a new project and add the jar in the project and add them later in the build path of the project. 相反,创建一个新项目并在项目中添加jar,稍后在项目的构建路径中添加它们。

See it: http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java) 见: http//www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM