java - Adding jar files to codenameone in NetBeans -
i have android pos device that's equipped fingerprint scanner. have .jar library meant develop android apps access fingerprint component in device. included jar file in lib folder of netbeans codenameone project , in native/android directory.
but when run application on device after building on build server, application throws noclassdeffounderror. class in jar file.
you may need treat native interface, pretty easy. create interface of method signatures need, right click on it, , select generate native. in native sub folder there android directory. can drop jar file in there , in stub file ends "impl", implement interface methods call methods in jar.
the downside of auto-code completion won't work. since you're using netbeans, if above should able compile cn1lib. can placed in libraries , code completion work.
check developers guide in advanced topics under hood section, , there's tutorial video also.
Comments
Post a Comment