Can I use any JAR?

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.

Updated on: 11/25/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!