RXTX Import Help
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: RXTX Import Help

  1. #1
    Join Date
    Dec 2011
    Posts
    9

    RXTX Import Help

    Hi all,

    I am having major problems trying to add the RXTX package to eclipse so I can read/write to a microcontroller. Iíve followed many different installation guides online but no success. The import gnu.util.*; never imports. Iíve already installed the files to the correct places as the guides say:

    RXTXSerial.dll -> C:\Program Files\Java\jre1.6.0_05\bin
    RXTXcomm.jar -> jre1.6.0_0_04 and jre1.6.0_05 choose jre1.6.0_05


    Please help I am using Eclipse and jdk1.6.0_23

    Many Thanks,

    Edward Francis

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,474

    Re: RXTX Import Help

    Have you added the jar to your Eclipse projects classpath?
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  3. #3
    Join Date
    Dec 2011
    Posts
    9

    Re: RXTX Import Help

    Err..... How do I do add the classpath in eclipse?

    I tried to edit the java path in the system enviromental variables but this ruined my eclipse and I had to restore.

    Sorry I am relatively new to java/eclipse, this is the first time i've imported an package

    Regards,

    Ed

  4. #4
    Join Date
    May 2006
    Location
    UK
    Posts
    4,474

    Re: RXTX Import Help

    Have you tried reading the Eclipse help file?

    Right click on your project in the package window, select "Build Path", select "Configure Build Path". When the panel appears add your Jar file.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  5. #5
    Join Date
    Dec 2011
    Posts
    9

    Re: RXTX Import Help

    Thank you keang for your help I tried this but it still didn't work.

    However it did led me to discover that I stupidly put the files in Program Files/ Java.....

    instead of Program Files(x86)/java.....

    simple mistakes cause major problems eh!

    Thanks again,

    Ed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center