Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Calling external Java programs

  1. #1
    Join Date
    Sep 2005
    Posts
    1,403

    Default Calling external Java programs

    Hello ,


    First let me congratulate the team on the great piece of software. Good stuff!!



    I would like to call some external java libraries, programs from Kettle. Ideally I might be calling these programs from the Java Script component. How do do this?

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default RE: Calling external Java programs

    The ideal way of calling external libs is by using a plugin.

    It's not that hard to do. Please see the sample plugin in Documents/Development pacakges. (DummyPlugin.zip)



    However, you can indeed also use Rhino Javascript.

    Please see the documentation of JavaScript here:

    http://www.mozilla.org/rhino/ScriptingJava.html





    For example:


    <code>
    java

    f = new java.io.File(FILENAME.getString())

    ...
    </code>


    HTH,

    Matt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.