Community
Participate
Working Groups
Build Identifier: 20110615-0604 actually i am using Rhino plugin in eclipse... to use java class in java script there is no problem when i just use class which is in RT.JAR. But when ever i want to use my class 'custom classes' then problem begin due to classpath.. Step make by me 1. make a class and put it into a jar file.. 2. add it 'jar' into external jar in eclipse. 3. use it into java script file and debugger it as Rhino debugger in eclipse. 4. error due to class not defined...'due to class path is not set properly' error is js: uncaught JavaScript runtime exception: ReferenceError: "Temp" is not defined. javascript file is importPackage(java.lang); importPackage(Packages.my); var a=new Temp(); System.out.println(java.lang.System.getProperty("java.class.path")); My view :- 1.in rhino debugger config there is only 2 or three variable like ECLIPSE_HOME ,JRE_LIB,JRE_ext So only the value of these variables are used by rhino debugger... 2.then print value of classpath by using Systemclass function then tn only print the classpath of rhino jar which is in eclipse/plugin folder.... now what should i do..? Reproducible: Always Steps to Reproduce: 1. make a class and put it into a jar file.. 2. add it 'jar' into external jar in eclipse. 3. use it into java script file and debugger it as Rhino debugger in eclipse. 4. error due to class not defined...'due to class path is not set properly' error is
In short, currently we do not fully support the Java to JS mix Marking as a dupe of bug 343142 *** This bug has been marked as a duplicate of bug 343142 ***