I'm trying to open same project in 3 build tools: Maven, Ant and Gradle. It's simple project with sql database, I've already done this via Ant and Maven, unfortunately after adding rs2xml.jar to project module(as I added in Ant and Maven), and import (import net.proteanit.sql.DbUtils;) project doesn't compile. I don't receive any errors from Intellij (no code is red), during gradle task - compileJava the message appears:
"error: package net.proteanit.sql does not exist import net.proteanit.sql.DbUtils;"
It points me to method: table.setModel(DbUtils.resultSetToTableModel(rs));
In build file I added dependecies like: open javafx, javafx graphics, java.swing, apche.ant.
{ public class ExaminationDetails extends JFrame implements ActionListener {
private JPanel contentPane;
private JTable table;
private JTextField search;
private JButton b1, b2, b3;
public void Book() {
try {
conn con = new conn();
String sql = "select * from student";
PreparedStatement st = con.c.prepareStatement(sql);
ResultSet rs = st.executeQuery();
***table.setModel(DbUtils.resultSetToTableModel(rs));***
rs.close();
st.close();
con.c.close();
} catch (Exception e) {
}
}
}
Any help will be appreciated.