Possible to place native lib outside JAR? (Windows 10S App Store Issue)

45 views
Skip to first unread message

Kraakhoofd

unread,
Sep 12, 2017, 2:20:03 PM9/12/17
to Xerial
I have a Java app in the Windows 10 store, packaged as an .appx file. I got contacted by the MS team that my app crashes on Windows 10 S (not on normal Windows 10).

The cause is the Sqlite-jdbc library that is copying the native code to the windows temp folder and runs it. This is not allowed behaviour in Windows 10S. I know you can specify where to copy the native code to using the System properties in the Java code, but the Store demands that the native code resides inside the .appx package I distribute.

Is there an option (or could it be implemented) to specify the location of the native code that I bundle (e.g. I put it next to my .exe in the package) before loading the SQLite library? E.g. using System properties? 

Note: Reverting to an old version with pure-java works, but the performance hit is huge....

Thanks in advance!
Reply all
Reply to author
Forward
0 new messages