Hi,
My first problem was i am not able to compiled a file from java script to java class.Now its clear and working fine..now i can convert a java script file to java class by Rhino Java Script Compiler.But now i am facing 1 more problem.i want to run that java class in IntelliJIdea.bu t its runnig with no error and not getting the out put.This is the converted java class for printing "HelloWorld ".

Code:
import org.mozilla.javascript.*;
...