ezieragabriel / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Can't build Arduino on Windows using 64-bit JDK. #687

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. clone git repo
2. ant
3. ant run

What is the expected output? What do you see instead?
Arduino IDE running. Instead, splash screen shows, then disappearsa

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
$ git log
commit b14a3c501ebd62afff251fb69169df6a6bcf9758
Author: David A. Mellis <d.mellis@arduino.cc>
Date:   Fri Oct 21 18:25:14 2011 -0400

Please provide any additional information below.
Windows 7 x64

Original issue reported on code.google.com by yincrash on 22 Oct 2011 at 3:27

GoogleCodeExporter commented 9 years ago
0022 works fine.

Original comment by yincrash on 22 Oct 2011 at 3:28

GoogleCodeExporter commented 9 years ago
Hmm... maybe try deleting your preferences.txt file before launching?

Original comment by dmel...@gmail.com on 22 Oct 2011 at 10:49

GoogleCodeExporter commented 9 years ago
No good. I deleted it from C:\Documents and 
Settings\yincrash\AppData\Roaming\Arduino
The git build didn't create a new one either.

Original comment by yincrash on 22 Oct 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Is there any console logging? Would I be able to run it from command line from 
a jar?

Original comment by yincrash on 22 Oct 2011 at 10:56

GoogleCodeExporter commented 9 years ago
Good idea!  If you run it from the command line directly (rather than through 
ant), you should be able to see the error message / exception stack trace.

Original comment by dmel...@gmail.com on 23 Oct 2011 at 3:11

GoogleCodeExporter commented 9 years ago
D:\Code\arduino\arduino-from-code\Arduino\build\windows\work\lib>java 
-classpath pde.jar;core.jar;jna.jar;ecj.jar;RXTXcomm.jar processing.app.Base

Exception in thread "main" java.lang.UnsatisfiedLinkError: jnidispatch 
(/com/sun/jna/win32-amd64/jnidispatch.dll) not found in resource path
        at com.sun.jna.Native.loadNativeLibrary(Native.java:471)
        at com.sun.jna.Native.<clinit>(Native.java:91)
        at processing.app.windows.Platform.<clinit>(Platform.java:279)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at processing.app.Base.initPlatform(Base.java:210)
        at processing.app.Base.main(Base.java:147)

Original comment by yincrash on 23 Oct 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Hmmm... is that using the same "java" binary as the one referred to by the ant 
build.xml?   If so, it sounds like a problem with that java distribution...  or 
a difference between the version expected by the Arduino IDE code and the 
actual version.  Maybe try a different / older or newer Java?

Original comment by dmel...@gmail.com on 23 Oct 2011 at 4:07

GoogleCodeExporter commented 9 years ago
Using x64 JDK 6u29 to compile and run.
i replaced the jna.jar with the newest jna.jar from 
http://java.net/projects/jna/downloads (3.3.0)

D:\Code\arduino\arduino-from-code\Arduino\build\windows\work>java -classpath 
lib\pde.jar;lib\core.jar;lib\jna.jar;lib\ec
j.jar;lib\RXTXcomm.jar processing.app.Base
java.lang.UnsatisfiedLinkError: 
D:\Code\arduino\arduino-from-code\Arduino\build\windows\work\rxtxSerial.dll: 
Can't load
IA 32-bit .dll on a AMD 64-bit platform thrown while loading 
gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
D:\Code\arduino\arduino-from-code\Arduino\build\windows\work\
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(ClassLoader.java:1807)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
        at processing.app.Editor.populateSerialMenu(Editor.java:969)
        at processing.app.Editor.buildToolsMenu(Editor.java:697)
        at processing.app.Editor.buildMenuBar(Editor.java:482)
        at processing.app.Editor.<init>(Editor.java:204)
        at processing.app.Base.handleOpen(Base.java:700)
        at processing.app.Base.handleOpen(Base.java:665)
        at processing.app.Base.handleNew(Base.java:561)
        at processing.app.Base.<init>(Base.java:301)
        at processing.app.Base.main(Base.java:190)

I'm just going to download the 32-bit JDK and try again. It's probably not even 
worth the time to create a separate windows x64 build.

Original comment by yincrash on 24 Oct 2011 at 3:36

GoogleCodeExporter commented 9 years ago
Yup. Works right out of the box with the 32-bit JDK

Original comment by yincrash on 24 Oct 2011 at 3:54

GoogleCodeExporter commented 9 years ago
Thanks for the update.  I'm leaving this open for now, since it would be nice 
if it worked with a 64-bit JDK - but it's not a high priority.

Original comment by dmel...@gmail.com on 24 Oct 2011 at 5:35

GoogleCodeExporter commented 9 years ago
Ran into the same problem tonight with arduino v1.0

Original comment by scottsl...@gmail.com on 3 Mar 2012 at 7:10

GoogleCodeExporter commented 9 years ago
The same problem with arduino v1.5.6-r2

Original comment by alexande...@gmail.com on 7 Apr 2014 at 1:10

GoogleCodeExporter commented 9 years ago
I Manged to get this working (sort of still get an error about RXTX version 
mismatch)

I simply downloaded the x64 version of the rxtx library (dll and jar) and 
placed that in the build directories, and now the Arduino comes up without a 
problem (using version :

$ git show
commit e71bbf6011af8993f834671e7be635a8c3ca4ef6
Merge: 163b60e 2c10bbe
Author: Cristian Maglie <c.maglie@bug.st>
Date:   Thu Jul 24 14:53:48 2014 +0200

Original comment by bloggsp...@gmail.com on 29 Jul 2014 at 6:49