Java. services in the META-INF directory of jar file

408 Views Asked by At

In my project, I have created a custom JDBC driver and I want to put it in a jar file. I also know that JDBC driver registration via DriverManager can be automated if I put the appropriate file in the services folder of the META-INF directory inside the jar file. But I can't find a way to put a folder named "services" in the META-INF directory of the jar file, and also put the appropriate file in the services directory, which will make the registration of the JDBC driver automatic. please tell me how to do it.

EDIT: I want to put the "services" folder in the jar file during jar file creation, not after jar file creation.

0

There are 0 best solutions below