How to use the external jar library in an SAP HANA XS project

advertisements

I am trying to make an XS project in HANA which will use some of the classes and methods that can be found in a .jar file. These classes and methods will do some calculations and present it to the user in the UI.

The question is: How do I access methods and classes of that .jar file?

I have registered it as an external library, but I have no idea how to call it from my XS javascript source files.


there's no way to invoke external .jar package from XS's server-side JavaScript. You can use an external library using function "$.import", but this is only valid for JavaScript library.