How create CUSTOM java class object
in java-script using RHINO
..?
如何使用RHINO在java脚本中创建CUSTOM java类对象..?
We can use classes which is in rt.jar
but not other custom class
我们可以使用rt.jar中的类,但不能使用其他自定义类
1 个解决方案
#1
0
- compile class use a package
- make a jar file
- set classpath of that jar
- use importPackage(Packages.)
- start rhino..
- now it will work... :-)
编译类使用包
制作一个jar文件
设置那个jar的classpath
现在它会工作...... :-)
but tell me some one how it will run in Eclipse.. ?
但请告诉我一些如何在Eclipse中运行..?
#1
0
- compile class use a package
- make a jar file
- set classpath of that jar
- use importPackage(Packages.)
- start rhino..
- now it will work... :-)
编译类使用包
制作一个jar文件
设置那个jar的classpath
现在它会工作...... :-)
but tell me some one how it will run in Eclipse.. ?
但请告诉我一些如何在Eclipse中运行..?