Skip to main content
1-Visitor
October 3, 2017
Question

Can I import a java program to a thingworx widget?

  • October 3, 2017
  • 4 replies
  • 3344 views

Can I import a java program to a thingworx widget?

    4 replies

    5-Regular Member
    October 7, 2017

    Hey Fernando,

    Just to clarify -- you are trying to launch a Java executable from a TWX widget? This is possible, although I'm not sure on the details. I would recommend looking at how this is done for the websocket tunneling widget: https://marketplace.thingworx.com/tools/Web-Sockets-Tunnel-Widget-And-Library

    I believe you''d just create a custom widget that linked to a jar executable that you include in your widget extension, this would then download the executable and run on the users machine.

    fwertt1-VisitorAuthor
    1-Visitor
    October 17, 2017

    add a java file, in this case, its an SDMWrapper, into a javascript function..

    I have a button that I want to execute a java file (SDM Wrapper)

    'action': function () {

                              //here I wanna execute my java file(SDM Wrapper) when I click the button.

                            

    }

    1-Visitor
    October 10, 2017

    Hi Fernando,

    Were you able to launch the executable?

    If yes, how?

    Thanks,

    Rami

    fwertt1-VisitorAuthor
    1-Visitor
    October 17, 2017

    add a java file, in this case, its an SDMWrapper, into a javascript function..

    I have a button that I want to execute a java file (SDM Wrapper)

    'action': function () {

                              //here I wanna execute my java file(SDM Wrapper) when I click the button.

                            

    }