You can't use an arbitrary JAR "as is". Please also check the maven dependency discussion in this post.

You can wrap libraries as cn1libs but a library might use arbitrary Java code which might be a problem, see this.

We have a tutorial on porting native OS SDK's to Codename One in the developer guide.

There are a lot of 3rd party libraries adapted to Codename One and most of them are open source. e.g. this one enables camera preview. You can use that as a sample starting point.
Was this article helpful?
Cancel
Thank you!