[Objectscript-users] using mountJarFile
Brought to you by:
rob_d_clark
From: Lysander D. <sa...@sb...> - 2005-10-07 01:11:00
|
Hi, How does one use pkg.system.mountJarFile ? I am attempting to instantiate an object of class com.thoughtworks.xstream.XStream. The class exists in this jar: xstream-SNAPSHOT.jar When I execute these commands: import "reflection.os"; var file = new pkg.fs.File ( "xstream-SNAPSHOT.jar" ); pkg.system.mountJarFile ( file ); var com = new JavaPackage ("com" ); var x = new com.thoughtworks.xstream.XStream(); I get this error: oscript.exceptions.PackagedScriptObjectException: NoSuchMemberException: no such member: JavaPackage: thoughtworks What must be done to mount xstream-SNAPSHOT.jar and instantiate com.thoughtworks.xstream.XStream ? Thanks |