A4S icon indicating copy to clipboard operation
A4S copied to clipboard

Windows version ? 64 bits Java version ?

Open SebCanet opened this issue 10 years ago • 10 comments

Hi, I tried A4S on Windows but everything is in 64 bits. I tried installing the 32bit version of Java, and use this command line : java -d64 -jar A4S.jar COM3

and Windows says : java.lang.UnsatisfiedLinkError: S:\Travail\PAF\exemples_scratch\Scratch2_et_Ardu ino\A4S\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform throw n while loading gnu.io.RXTXCommDriver Exception in thread "main" java.lang.UnsatisfiedLinkError: S:\Travail\PAF\exempl es_scratch\Scratch2_et_Arduino\A4S\rxtxSerial.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at gnu.io.CommPortIdentifier.(CommPortIdentifier.java:83) at A4S.main(A4S.java:76)

If I try : java -d32 -jar A4S.jar COM3 I have : Error: This Java instance does not support a 32-bit JVM. Please install the desired version.

Can I run it on Windows and Scratch 2 ? Thanks a lot.

SebCanet avatar Aug 24 '14 13:08 SebCanet

Thanks for letting me know about this problem. I did a quick Google search but didn't find a 64-bit Windows version of the RXTX version that A4S uses (2.1-7). We should probably see if we can get a 32-bit Java working for you. When you tried java -d32, are you sure the 32-bit Java was the first one in your path?

damellis avatar Aug 26 '14 14:08 damellis

No, I have something like taht : C:\ProgramData\Oracle\Java\javapath I looked but it's too much complicated too change for a newbie (open, change filelink to 32 bit version, etc)...because it's not only for me but to publish this info. And be understandable by newbies.

SebCanet avatar Aug 26 '14 16:08 SebCanet

Hey, you might try the DLL here: http://jlog.org/rxtx-win.html

damellis avatar Aug 29 '14 15:08 damellis

PERFECT !!!! It works ! Thanks a lot ! I only have this message : S:\A4S-master>java -jar A4S.jar COM3 WARNING: RXTX Version mismatch Jar version = RXTX-2.2pre1 native lib Version = RXTX-2.2pre2 HTTPExtensionExample helper app started on HAL9000/192.168.180.1

But everything ok. Thanks a lot, I'll try it for SuperEasy-A4S.

SebCanet avatar Aug 29 '14 16:08 SebCanet

How could I help to translate in French ?

SebCanet avatar Aug 29 '14 16:08 SebCanet

damellis thanx man

al-alamin avatar Dec 08 '15 08:12 al-alamin

Damellis, saving my life with that dll. 100% working for 64 bit windows systems 7+8.

Elliott-Green avatar Jan 19 '16 14:01 Elliott-Green

bro im getting this error win32com.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

vinuvish avatar Dec 11 '16 07:12 vinuvish

Thanks a lot, it's working after a lot of searching. but seriously, Oracle should make this a lot easier to use COMs, and add it without having to do that manually.

MousaAlfhaily avatar Feb 24 '17 21:02 MousaAlfhaily

Thanks @damellis! Downloading the x64 rxtxSerial.dll from the link you posted and putting such file on the project source directory did the trick! I was getting the same error than @vinuvish, and that solved it.

SergioMP avatar Feb 07 '18 12:02 SergioMP