Trick Native Interface to use linux libs for dektop?

7 views
Skip to first unread message

andrea antonello

unread,
Mar 30, 2018, 8:14:11 AM3/30/18
to CodenameOne Discussions
Hi, I am trying to understand if I can develop a native interface feature for windows desktop on linux.

I.e. I have existing java code I would like to reuse and itself makes use of native libraries, for which I have both the linux and windows versions.

Since I work on a linux machine, I would like to know if it is possible to cheat and make the simulator use the linux native libraries while I develop.
This would be really an amazing possibility, without having to exit the well known environment. :-)

Thanks for any hint,
Andrea

Shai Almog

unread,
Mar 31, 2018, 12:54:26 AM3/31/18
to CodenameOne Discussions
Hi,
we discussed this already but for reference of people reading this you can just use JNI in the desktop build/simulator code.
The JNI in the native interface implementation is OK since it's Java SE. There you shouldn't have a problem using a Linux native library or a DLL.

andrea antonello

unread,
Mar 31, 2018, 1:32:28 AM3/31/18
to codenameone...@googlegroups.com
Hi Shai,
this is quite cool and makes me wonder what it would take to have a
linux build also? The online build creates a msi installer for
windows, right? Is there a way to have a simple zip also?

Cheers,
Andrea




>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discu...@googlegroups.com.
> Visit this group at https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/92dfe794-d155-4944-b13e-7f753bcc8267%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Shai Almog

unread,
Mar 31, 2018, 11:48:29 PM3/31/18
to CodenameOne Discussions
We can build an executable JAR target. We just didn't work on it due to limited demand.
Reply all
Reply to author
Forward
0 new messages