Coder Social home page Coder Social logo

Comments (9)

Sammy1Am avatar Sammy1Am commented on July 20, 2024

Huh, interesting. It does look like you created a new project in NetBeans and tried to import the code from the Moppy project though. The download from GitHub should already be a valid NetBeans project-- try using NetBeans to just open the downloaded project, rather than creating a new one.

from moppyclassic.

ljmerza avatar ljmerza commented on July 20, 2024

Hey, thanks for responding. I opened the netbeans project and it seems to auto load all of the necessary libraries but now when I run the program i get this error:

Feb 20, 2014 3:42:22 PM java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Qt: Untested Windows version 6.2 detected!
l

netbeans wouldnt let me copy the rest so here is a picture of it:
capture

from moppyclassic.

Sammy1Am avatar Sammy1Am commented on July 20, 2024

Are you sure there's not another error in there somewhere? The text you pasted has to do with reading preferences from the registry, but the stacktrace looks like it's trying to load the rxtx assembly. Can you export the log to text somehow to paste it here?

from moppyclassic.

ljmerza avatar ljmerza commented on July 20, 2024

i tried exporting but half of it came out as random characters. I did miss a part of the error code. This is what is in between the text and picture in the last post i made.
capture

the text that extends out is:
projects\Moppy-moppy-advanced\Java\SerialDrivers\rxtx-2.1-7-bins-r2\Windows\ch-rxtx-2.2-20081207-win-x64\rxtxSerial.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform thrown while loading gnu.io.RXTXCommDriver
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Users\Leo\Dropbox\arduino kinect projects\Moppy-moppy-advanced\Java\SerialDrivers\rxtx-2.1-7-bins-r2\Windows\ch-rxtx-2.2-20081207-win-x64\rxtxSerial.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform

maybe it doesnt like my 32bit rxtxcomm files but my java is x86.

EDIT: Okay so here's the fix. Looks like your program will auto load the appropriate bit version of the dll files based off the OS so if you have a x86 java on a x64 system, it errors out. I just replaced the x64 drivers in the folder its erroring out on (Moppy-moppy-advanced\Java\SerialDrivers\rxtx-2.1-7-bins-r2\Windows\ch-rxtx-2.2-20081207-win-x64) with the x32 drivers and it works just fine.

Thank you for the help. Awesome that you provide support after all this time.

from moppyclassic.

ljmerza avatar ljmerza commented on July 20, 2024

Damn I spoke too soon. The GUI loads now but it errors out when trying to connect to the arduino.
capture
capture2

from moppyclassic.

Sammy1Am avatar Sammy1Am commented on July 20, 2024

Okay, you've made some progress then. I think the issue is probably coming from the version mismatch (you can see the warning about it there in white in your latest screenshot).

Basically, the rxtx.jar file that I included is a newer version than the dll file that you're referencing. You can resolve this by either downloading a newer version of the dll (from rxtx.cloudhopper.net probably), or by using the jar file that came with the dll that you're currently using (from whatever site you got the dll from).

I'd recommend using a newer version of the dll, but either should work.

from moppyclassic.

ljmerza avatar ljmerza commented on July 20, 2024

That link is dead but I was able to find a download and get it all working. Thanks again!

from moppyclassic.

jazzbassNick avatar jazzbassNick commented on July 20, 2024

You know, that's funny - I get the same mismatch warning, but don't have any issues. Hmmm....

from moppyclassic.

Sammy1Am avatar Sammy1Am commented on July 20, 2024

Glad you got it working!

@jazzbassNick : That is a little unusual, but that's why the warning is just a "warning" and not an "error": it won't necessarily break anything, but you should watch out for it. I'm guessing the issue was related to the fact that he was using Windows 8 (Windows version 6.2 'cus Microsoft is bad a version numbers), and the dll's weren't happy.

from moppyclassic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.