Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Any source for the javax.comm package?

  • 14-11-2011 09:46PM
    #1
    Registered Users, Registered Users 2 Posts: 19,261 ✭✭✭✭


    Hi all,
    I'm wanting to start on a private project that requires reading from and writing to the serial port. I want to use this project as a vehicle for learning Java.

    Having read a few tutorials etc. I set about looking to download the actual javax.comm API package from Sun. Unfortunately I have had absolutely no luck finding it! The Oracle site that details the package has no link to the feckin download (unless I'm blind) and I found a couple of forum posts from people having similar trouble finding this jar.

    Does anyone have a source? Can it really be as hard as I'm finding to locate it?


Comments

  • Moderators, Technology & Internet Moderators Posts: 1,338 Mod ✭✭✭✭croo


    it's probably part of the JDK!? 3rd from the end on this link
    http://www.oracle.com/technetwork/java/javase/downloads/index.html

    Or you can browse the code here
    http://www.java2s.com/Code/JavaAPI/javax.comm/Catalogjavax.comm.htm


  • Registered Users, Registered Users 2 Posts: 19,261 ✭✭✭✭murphaph


    I can't find it in the jdk. I have jdk1.6.0_24 installed and attempting to import javax.comm.* or any individual classes therein fail(s) to resolve. From my reading of it, it is not included in the jdk but is an extension to it.


  • Registered Users, Registered Users 2, Paid Member Posts: 2,033 ✭✭✭lynchie


    If ur are working on windows then afaik the javax.comm extension doesnt have a working implementation of the interfaces for windows. It only provides solaris / linux implementations. If you just want to work with Comm IO I suggest you use the rxtx library for java. Its API is somewhat compatible with the javax.comm interfaces.


  • Registered Users, Registered Users 2 Posts: 19,261 ✭✭✭✭murphaph


    Cheers lynchie, I will be using Linux for this stuff. If absolutely no source for javax.comm can be found, I'll have to use RXTX (though from what I've read it might be a better option anyway as Sun (now Oracle) have seemingly pretty much ignored the javax.comm package for years.

    Do you have any experience with it?


  • Moderators, Technology & Internet Moderators Posts: 1,338 Mod ✭✭✭✭croo


    Can you not see the source on the second link I provided?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 19,261 ✭✭✭✭murphaph


    croo wrote: »
    Can you not see the source on the second link I provided?
    Maybe I'm being stupid but all I see are various examples of using the javax.comm package but not the actual classes??


  • Moderators, Technology & Internet Moderators Posts: 1,338 Mod ✭✭✭✭croo


    murphaph wrote: »
    Maybe I'm being stupid but all I see are various examples of using the javax.comm package but not the actual classes??
    No, it's not you it's me. I didn't look close enough... I had thought it was source for the classes not examples. Sorry.


  • Registered Users, Registered Users 2 Posts: 19,261 ✭✭✭✭murphaph


    croo wrote: »
    No, it's not you it's me. I didn't look close enough... I had thought it was source for the classes not examples. Sorry.
    No probs, thanks for trying to help :)


  • Registered Users, Registered Users 2, Paid Member Posts: 2,033 ✭✭✭lynchie


    murphaph wrote: »
    Cheers lynchie, I will be using Linux for this stuff. If absolutely no source for javax.comm can be found, I'll have to use RXTX (though from what I've read it might be a better option anyway as Sun (now Oracle) have seemingly pretty much ignored the javax.comm package for years.

    Do you have any experience with it?

    Yeah I used it on windows a few years back for a number of projects. Never had an issue with it and worked flawlessly for us.


Advertisement
Advertisement