Skip to content

JNA.jar version issue #1894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Coding-Badly opened this issue Feb 25, 2014 · 15 comments
Closed

JNA.jar version issue #1894

Coding-Badly opened this issue Feb 25, 2014 · 15 comments
Labels
Milestone

Comments

@Coding-Badly
Copy link

Trouble with the latest (1.5.6-r2) beta...
http://forum.arduino.cc/index.php?topic=221379.0

@spacegaier
Copy link

The issue is not specific to 1.5.6-r2 beta, but also affects the current stable version 1.0.5-r2.

@ffissore
Copy link
Contributor

Can you detail the problem? Latest 1.5.6 for windows includes an arduino_debug.exe. Can you use it to launch the IDE from the command line and, once an error message is printed, paste it here?

@spacegaier
Copy link

I had already tried that many times during my investigation and in fact the error message you see below was the reason for me finding the solution (I saw that "jna" part in the package name and focused on that then).

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.jna.Native.pointerSize()I
at com.sun.jna.Native.pointerSize(Native Method)
at com.sun.jna.Native.(Native.java:93)
at processing.app.windows.Platform.(Platform.java:286)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at processing.app.Base.initPlatform(Base.java:245)
at processing.app.Base.main(Base.java:135)

@spacegaier
Copy link

_Just a note:_ On a different PC of mine (also Win7 x64), it works fine with the JNA.jar that comes with Arduino. But I also just tried it with a newer version (that fixed the issue on my other machine) and it also works. Perhaps we need some sort of survey to evaluate if other users would have issues when moving to a newer JNA.jar version.

@Coding-Badly
Copy link
Author

Did you use the installer or just unzip?

@spacegaier
Copy link

I tried both, but they seem to come with the same JNA.jar, so that doesn't make any difference. same applies for the nightly builds.

@Coding-Badly
Copy link
Author

Which flavor of Windows? Home, Business, Enterprise?

Are CLASSPATH and/or JAVA environment variables set?

@spacegaier
Copy link

Win 7 x64 Professional SP1

Env. vars: I have neither a CLASSPATH nor a JAVA variable set. So, Arduino should definitely be using the JRE bundled with it.

@Coding-Badly
Copy link
Author

Huh. I have exactly the same operating system and have had no problems.

@spacegaier
Copy link

That is really weird. It must be related to something different then. But no real clue, as to what it might be.

@Coding-Badly
Copy link
Author

I have four Arduino copies of JNA.JAR on my computer. They are all identical...

C:\Arduino >dir jna* /s
Volume in drive C has no label.
Volume Serial Number is 2722-98DB

Directory of C:\Arduino\arduino-1.0.5\lib

05/17/2013 09:24 PM 625,227 jna.jar
1 File(s) 625,227 bytes

Directory of C:\Arduino\arduino-1.5.4\lib

09/11/2013 02:59 PM 625,227 jna.jar
1 File(s) 625,227 bytes

Directory of C:\Arduino\arduino-1.5.5\lib

11/28/2013 02:35 PM 625,227 jna.jar
1 File(s) 625,227 bytes

Directory of C:\Arduino\arduino-1.5.6-r2\lib

02/21/2014 06:11 PM 625,227 jna.jar
1 File(s) 625,227 bytes

 Total Files Listed:
           4 File(s)      2,500,908 bytes
           0 Dir(s)  105,690,247,168 bytes free

C:\Arduino >fc /b C:\Arduino\arduino-1.5.6-r2\lib\jna.jar C:\Arduino\arduino-1.5.5\lib\jna.jar
Comparing files C:\ARDUINO\ARDUINO-1.5.6-R2\LIB\jna.jar and C:\ARDUINO\ARDUINO-1.5.5\LIB\JNA.JAR
FC: no differences encountered

C:\Arduino >fc /b C:\Arduino\arduino-1.5.6-r2\lib\jna.jar C:\Arduino\arduino-1.5.4\lib\jna.jar
Comparing files C:\ARDUINO\ARDUINO-1.5.6-R2\LIB\jna.jar and C:\ARDUINO\ARDUINO-1.5.4\LIB\JNA.JAR
FC: no differences encountered

C:\Arduino >fc /b C:\Arduino\arduino-1.5.6-r2\lib\jna.jar C:\Arduino\arduino-1.0.5\lib\jna.jar
Comparing files C:\ARDUINO\ARDUINO-1.5.6-R2\LIB\jna.jar and C:\ARDUINO\ARDUINO-1.0.5\LIB\JNA.JAR
FC: no differences encountered

@spacegaier
Copy link

Did you try, running Arduino with the newer version I attached in the linked thread?

@Coding-Badly
Copy link
Author

Does not make any difference. (I did not expect it to.) The Arduino IDE works with no problems.

My suspicion is the problem lies with your anti-virus software; that it is trying to inject a DLL into the Arduino process which is causing JNA to go haywire. Try disabling it.

@cmaglie cmaglie added this to the Release 1.5.7 milestone Mar 20, 2014
@cmaglie cmaglie modified the milestones: Release 1.5.8, Release 1.5.7 Jul 2, 2014
@cmaglie cmaglie modified the milestones: Release 1.5.9, Release 1.5.8 Sep 12, 2014
@cmaglie
Copy link
Member

cmaglie commented Sep 12, 2014

@Coding-Badly, @spacegaier
May this be related to #1948 ?

@cmaglie cmaglie modified the milestones: Release 1.6.0, Release 1.6.1 Feb 18, 2015
@ffissore ffissore modified the milestones: Release 1.6.1, Release 1.6.5 May 20, 2015
@ffissore
Copy link
Contributor

Updating JNA. Issue is #3190

@ffissore ffissore modified the milestone: Release 1.6.5 May 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants