Hello,
I am getting error package not found com.ibm.as400.access.* when trying to compile or when opened in netbeans.
Any info is greatly appreciated. I spent whole of today trying to resolve this one.
Steps done:
1) I downloaded jtopen_7_1.zip and unziped into folder c:\jtopen_7_1
2) Added C:\jtopen_7_1\lib\jt400.jar in my path environment variable.
3) Restarted my computer.
4) Net beans keeps giving error msg cannot find package.
code is
public class AS400Access {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Inside JDBC Test");
try {
DriverManager.registerDriver(new com.ibm.as400.access.AS400JDBCDriver());
} catch (SQLException e) {
System.out.println("AS/400 JDBC Driver not found");
System.out.println(e);
System.exit(0);
}
try {
conn = DriverManager.getConnection("jdbc:as400://DVLPMNT");
} catch (SQLException e) {
System.out.println("Connection failed with " + e.getMessage() + " ");
System.exit(0);
}
System.out.println("Connected to the AS400 OK...");
}
}
Please help
Regards
DGOVI