Skip to content

Commit 3bbcfb5

Browse files
committed
Resolved possible jnidispatch.dll conflict on Windows
from: processing/processing#2239 If there's is some other Java program installed that uses JNA and jnidispatch.dll happens to be in the path then JNA in Processing will try to load it and probably crash due to some version mismatch. The issue can easily be solved by setting jna.nosys to make sure JNA will always extract the correct native lib from it's jar and ignore any libs in the system path: -Djna.nosys=true Fix arduino#1948
1 parent 6d7751c commit 3bbcfb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/windows/launcher/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<minVersion>1.6.0</minVersion>
3333
<maxVersion></maxVersion>
3434
<jdkPreference>preferJre</jdkPreference>
35-
<opt>-Xms128m -Xmx128m</opt>
35+
<opt>-Djna.nosys=true -Xms128m -Xmx128m</opt>
3636
</jre>
3737
<splash>
3838
<file>about.bmp</file>

build/windows/launcher/config_debug.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<minVersion>1.6.0</minVersion>
3333
<maxVersion></maxVersion>
3434
<jdkPreference>preferJre</jdkPreference>
35-
<opt>-Xms128m -Xmx128m</opt>
35+
<opt>-Djna.nosys=true -Xms128m -Xmx128m</opt>
3636
</jre>
3737
<messages>
3838
<startupErr>An error occurred while starting the application.</startupErr>

0 commit comments

Comments
 (0)