Subj : Using JProfiler with Rhino To : netscape.public.mozilla.jseng From : visitus 04 Date : Mon Jan 10 2005 04:19 pm --0-479587726-1105402749=:98090 Content-Type: text/plain; charset=us-ascii I am trying to profile the apis of our Java application using JProfiler. Rhino is being used to exercise the apis of our applications. In JProfiler's session, I define new session as: 1) by giving Main Class or Executable jar file as js.jar. I add Rhino's js.jar, and Java SDK's rt.jar and our own applications jar files into class path of the session. 2) In the arguments, I give the name of the script that calls our apis like c:\temp\apicaller.js arg1 arg2 However, the JVM exits and js shell complains uncaught exception: TypeError: JavaPackage com.company.xyz.api.methodABC is not a function; line NN However, if I call the same script as: java -classpath C:\j2sdk1.4.2_06\jre\lib\rt.jar;C:\app\bin\appjar1.jar;C:\app\bin\appjar2.jar;C:\app\bin\appjar3.jar;C:\rhino_framework\automation\rhino1_5R5\js.jar\" org.mozilla.javascript.tools.shell.Main C:\rhino_framework\automation\impExp_BMC.js Demo localhost Above method of calling the Rhino script from dos cmd prompt works fine. Wondering if there is anything that I am missing when using JProfiler? Thanks --------------------------------- Do you Yahoo!? The all-new My Yahoo! – Get yours free! --0-479587726-1105402749=:98090 Content-Type: text/html; charset=us-ascii