Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358238

Summary: How set classpath for Rhino debugger plugin in eclipse…?
Product: [WebTools] JSDT Reporter: Sumit Singh <sumitrockstar1234>
Component: DebugAssignee: Project Inbox <jsdt.debug-inbox>
Status: CLOSED DUPLICATE QA Contact: Michael Rennie <Michael_Rennie>
Severity: major    
Priority: P3 CC: Michael_Rennie, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Sumit Singh CLA 2011-09-20 08:59:22 EDT
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
Comment 1 Michael Rennie CLA 2011-09-20 10:13:17 EDT
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 ***