简体   繁体   English

我在Eclipse项目中添加了一个jar,但仍然无法导入

[英]I Added a jar into my Eclipse project, but still it doesn't import

package esta.fontend;

import java.awt.*;
import java.sql.*;
import javax.swing.*;
import esta.dbConnection.ConnectionDB;

import net.proteanit.sql.DbUtils;// This is where i find the problem;

Image Link explaining my problem 图片链接解释了我的问题

rs2xml.jar doesn't contain the needed java class. rs2xml.jar不包含所需的Java类。 The most probably reason is that it was built incorrectly. 最可能的原因是它的构建不正确。

As you may see it contains 'src.net.proteanit.sql' which is empty. 如您所见,它包含为空的“ src.net.proteanit.sql”。

So to fix the problem the jar should be rebuilt 因此,要解决此问题,应重建罐子

  1. The package should not include 'src' prefix 该软件包不应包含“ src”前缀
  2. The DbUtils class should be truly included into it. DbUtils类应该真正包含在其中。

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

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