For modern Java projects, instead of a manual download, you can manage the driver through Maven Central . Download - JDBC Driver for SQL Server - Microsoft Learn
export CLASSPATH=$CLASSPATH:/usr/share/java/mssql-jdbc-13.4.0.jre11.jar Use code with caution. Then, reload the profile: source ~/.bashrc . 4. Alternative: Maven and Gradle download microsoft jdbc driver for sql server linux
Download and Install Microsoft JDBC Driver for SQL Server on Linux For modern Java projects, instead of a manual
Use this for Java 11 and higher (including Java 17, 21, and 25). 3. Installation Steps for Linux Installation Steps for Linux A ZIP version is
A ZIP version is also available if preferred. 2. Choose the Right JAR File
As of , the latest general availability (GA) version is 13.4.0 . For Linux environments, you should typically download the compressed .tar.gz archive.
It is common practice to move the JAR to a system-wide location like /usr/share/java/ : sudo cp mssql-jdbc-13.4.0.jre11.jar /usr/share/java/ Use code with caution.