Reproduced below is the email exchange I have recently had with a reader of my article on Java to EXE conversion:
I have one question about java to exe approach and case when we should use it. I will appreciate if you find time to answer.
Let’s say we have decided to use JNI for some reason in our java project and native library is available for one platform only (windows dll for example). Using it we definitely kill java platform independence since our app will work only on 1 platform. Is there any reason to use java at all in this case? Or it’s better to write all the app in native code?
Thanks in advance for answer!