I have some third party Database client libraries in Java. I want to access them through
java_gateway.py
E.g: to make the client class (not
Apart from the accepted answer, you also have below options:
if you are in virtual environment then you can place it in
e.g. lib/python3.7/site-packages/pyspark/jars
lib/python3.7/site-packages/pyspark/jars
if you want java to discover it then you can place where your jre is installed under ext/ directory
ext/