Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358238 - How set classpath for Rhino debugger plugin in eclipse…?
Summary: How set classpath for Rhino debugger plugin in eclipse…?
Status: CLOSED DUPLICATE of bug 343142
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Michael Rennie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 08:59 EDT by Sumit Singh CLA
Modified: 2011-09-20 10:13 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***