I misread the original question, you are correct its impossible to do this and impractical to do this since the size of the library will be too big. If you want to create a library for iOS with Java the best approach would probably be J2Obj-C which was designed specifically for that purpose: https://code.google.com/p/j2objc/
Originally I had referenced these which allow you to create library projects for use with Codename One which might be the source of the confusion:
http://www.codenameone.com/3/post/2013/07/jaring-and-libraries.html