grazie della segnalazione del progetto POI, prima vorrei provare la prima strada che mi hai detto.
Secondo te devo usare un codice del seguente tipo?
codice:
import java.sql.*;

public class Lookup {
 public static void main(String[] args) throws SQLException, ClassNotFoundException {

  String dbUrl = "jdbc:odbc:people";
  String user = "";
  String password = "";

  // Load the driver (registers itself)
  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection c = DriverManager.getConnection(
  dbUrl, user, password);
  Statement s = c.createStatement();

  // SQL code:
  ResultSet r = s.executeQuery
    ("SELECT FIRST, LAST, EMAIL " +
     "FROM people.csv people " +
     "WHERE " +
     "(LAST='" + args[0] + "'));

  while(r.next()) {
    // Capitalization doesn't matter:
   System.out.println(r.getString("Last") + ", "+ r.getString("fIRST")+ ": " + r.getString("EMAIL") );
  }
  s.close(); // Also closes ResultSet
 }
}
dove al posto di people metto il nome del file excel (con l'estensione?)?