Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Using Jar in JS step

  1. #1
    Join Date
    Jan 2008
    Posts
    1

    Default Using Jar in JS step

    Hi All,

    I need to use my JAR from JS step
    I put my jar to the classpath but JS step can not resolve it.
    I get:

    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : Javascript error: ReferenceError: "com" is not defined. (script; line 6)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : Error stack trace:
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : ReferenceError: "com" is not defined. (script; line 6)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:2253)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:2243)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1252)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at org.mozilla.javascript.gen.c1982._c0(script:6)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at org.mozilla.javascript.gen.c1982.call(script)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at org.mozilla.javascript.gen.c1982.exec(script)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at be.ibridge.kettle.trans.step.scriptvalues.ScriptValues.addValues(ScriptValues.java:133)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at be.ibridge.kettle.trans.step.scriptvalues.ScriptValues.processRow(ScriptValues.java:185)
    2008/01/08 15:19:25 - Java Script Value.0 - ERROR : at be.ibridge.kettle.trans.step.scriptvalues.ScriptValues.run(ScriptValues.java:219)

    How can I do it ?
    Thanks in advance

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

    Default

    var acme = new Packages.com.foo.bar.Acme();

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.