Community
Participate
Working Groups
Created attachment 193484 [details] zip file contains the java class and javascript file I am using Indigo eclipse 3.7 M6 version. When i try to debug javascript file which uses custom java classes using rhino debugger, it is not recognizing these java classes. I have included this project under Source tab of Rhino java script debug configuration. I am attaching the source files. when i try to debug the java script it is throwing the below exception: js: "C:\hiddenpath\math.js", line 1: uncaught JavaScript runtime exception: TypeError: [JavaPackage sample.MathUtility] is not a function, it is object. at C:\hiddenpath\math.js:1 The same sample I am able to debug from standalone Rhino Debugger (using the class org.mozilla.javascript.tools.debugger.Main).
*** Bug 345344 has been marked as a duplicate of this bug. ***
*** Bug 358238 has been marked as a duplicate of this bug. ***
How do I submit patch to this bug. I have changed the source code for UI plug-in of JSDT plugins. How do i submit back to eclipse org?
(In reply to comment #3) > How do I submit patch to this bug. I have changed the source code for UI > plug-in of JSDT plugins. How do i submit back to eclipse org? Create a patch using your preferred method, and simply attach it this the bug report.
(In reply to comment #3) > How do I submit patch to this bug. I have changed the source code for UI > plug-in of JSDT plugins. How do i submit back to eclipse org? Hi Syam, I have the similar issue. Can you please share your fix? Tnx in advance!
Here is a workaround. Put your jar into the JRE's 'ext' folder. You can find it by running this in the JS debugger: print(java.lang.System.getProperty('java.ext.dirs')); Don't forget to prefix the path to your Java class with "Packages". e.g. var myObj = new Packages.my.package.MyObj();