Skip to Content
avatar image
Former Member

How to include third party jars in ui5 controller?

Hi Experts,

I have java related jars and I have to use it in ui5 controllers.

Since our controller will be of java script how should I import those jars in my code.

Thanks and Regards,

Vevek P J

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Oct 15, 2015 at 03:03 PM

    HI Vevek

    Sorry I do not know how this will work. Why do you need java jars to be in SAPUI5 controller (in Javascript)

    Thanks

    -D

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 15, 2015 at 04:26 PM

    Hi Vevek,

    Javascript is not the same as Java. Java runs on the server-side while Javascript runs on the client. You'll need a Java server. On that Java server, you could create a Java project with your jar files. If you want to use it in javascript. You'll have to create a servlet and use json to communicate with ajax calls in your javascript.

    http://www.htmlgoodies.com/beyond/javascript/article.php/3470971/Java-vs-JavaScript.htm

    Kind regards,

    Wouter

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 15, 2015 at 04:30 PM

    javascript files should be assembled as war ( and then ear if we are talking about SAP Java WAS)

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2015 at 06:04 AM

    Actually I am trying to develop an UI5 web application to do automated testing
    based on selenium jars. I kept those jars in lib folder of Web-Inf. When I tried using a class present in that lib it throws some error.

    Here are some screenshots.

    Suggest some ways to use those libraries.

    Regards,

    Vevek P J


    Capture1.PNG (4.1 kB)
    Capture2.PNG (4.7 kB)
    Capture3.PNG (3.9 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2015 at 10:11 AM

    We are trying to create an UI5 user interface through which we can
    send the data to selenium, and after testing the result has to be displayed in
    customized format through UI5.

    Provide with some suggestions.

    Regards,

    Vevek

    Add comment
    10|10000 characters needed characters exceeded