Hi Gunwoo and Pranjal,
https://support.sap.com/en/product/connectors/jco.html
It works locally because it is installed on your laptop and included in the environment variable PATH.
Include the suitable Java library available in the userlib directory of your project.
Go Make It