Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.23 KB

create-a-java-jar-file-from-class-files.md

File metadata and controls

34 lines (25 loc) · 1.23 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic monikerRange
Create a Java .jar file from class files
Package your class files into a .jar file when using SQL Server Language Extensions to execute Java code.
rwestMSFT
randolphwest
04/29/2024
sql
language-extensions
how-to
>=sql-server-ver15 || >=sql-server-linux-ver15

Create a Java .jar file from class files

[!INCLUDE sqlserver2019-and-later]

Learn how to package your class files into a .jar file, when using SQL Server Language Extensions to execute Java code. We recommend you package your files.

Create a .jar file

To create a .jar from class files, navigate to the folder containing your class file and run this command:

jar -cf <MyJar.jar> *.class

Make sure the path to jar.exe is part of the system path variable. Alternatively, specify the full path to jar which can be found under /bin in the JDK folder. For example:

C:\Users\MyUser\Desktop\jdk1.8.0_201\bin\jar -cf <MyJar.jar> *.class

Related content