String url = "jdbc:as400://://yourserver.com"; Connection conn = DriverManager.getConnection(url, "username", "password"); Use code with caution. Key Performance Properties
Place the jt400.jar file in your application's library folder or add its full path to your system's CLASSPATH environment variable.
To connect your Java application to an IBM i (AS/400) database, you need the , which is part of the IBM Toolbox for Java (or the open-source version, JTOpen ). This driver is typically packaged in a file named jt400.jar . Where to Download the Driver download driver com.ibm.as400.access.as400jdbcdriver
For a version specifically supported by IBM, download it from the IBM Toolbox for Java and JTOpen portal.
After downloading the JTOpen zip archive, extract it and locate the jt400.jar file. String url = "jdbc:as400://://yourserver
You can obtain the driver from several authoritative sources depending on whether you need a licensed or open-source version:
The standard URL format for establishing a connection is: jdbc:as400://[hostname]/[default-schema];[properties] . This driver is typically packaged in a file named jt400
In your Java code, the driver class name must be specified as: com.ibm.as400.access.AS400JDBCDriver . Connection String Syntax