I'm trying import my own classes into Rhino and I'm running into some difficulty.
I'm using windows 7 and starting the Rhino command line with this
java -cp .;C:\path\myClasses.jar -jar js.jar
So far so good, I get the prompt. But I can't seem to use the classes. I've tried
Packages.java.mypackagename.MyClass.Method()
and also
importPackage(Packages.java.mypackagename) MyClass.Method()
which also doesn't work. I've also tried ommiting mypackagename because I don't know if that's needed (eclipse forces lower case package names by default, is that important?)
What am I not getting right here?

New Topic/Question
Reply




MultiQuote




|