i'm having play application , want load files jars /lib folder. got code supposed use, code includes following line:
classloader.getsystemresourceasstream("model/model.jar")
well got null result. figured, should use respective functions play framework:
play.application().resourceasstream("model/model.jar")
this did work me. however, depend on library , library using following line of code:
url crfexecurl = this.getclass().getresource(loc);
the resource accessible @ string stored in loc, relative .jar class above line of code located. can't change code use again play function though. there way, can setup play framework, allowing resource extraction?
thanks help!
Comments
Post a Comment