How to Create jar file for extension

I have java code for external library how can i convert this java file into jar file.
because i want to use this jar file as a library.
please help me

Maybe try compiling it yourself: https://docs.oracle.com/javase/tutorial/deployment/jar/build.html

1 Like

If you use the extension template repository, you may be able to drop the sources right into the extension.

If not, follow the information linked by @Red_Panda to build a JAR and then you can drop it in the lib/deps folder.