This discussion is archived
7 Replies Latest reply: Dec 8, 2010 8:28 AM by 822264 RSS

javax.comm

843807 Newbie
Currently Being Moderated
Hi.

I've been having some problems using the javax.comm package. I've followed all the instructions from several tutorials (from the package itself and others) and i continue to have this errors :

[Loaded javax.comm.CommPortIdentifier from file:/C:/Program%20Files/Java/jdk1.5.0_06/jre/lib/ext/comm.jar]
[Loaded java.lang.InterruptedException from shared objects file]
[Loaded javax.comm.UnsupportedCommOperationException from file:/C:/Program%20Files/Java/jdk1.5.0_06/jre/lib/ext/comm.jar]
[Loaded java.io.Reader from shared objects file]
[Loaded java.io.StringReader from shared objects file]
[Loaded javax.comm.OwnershipEventThread from file:/C:/Program%20Files/Java/jdk1.5.0_06/jre/lib/ext/comm.jar]
[Loaded java.io.StreamTokenizer from shared objects file]
[Loaded javax.comm.CommPortEnumerator from file:/C:/Program%20Files/Java/jdk1.5.0_06/jre/lib/ext/comm.jar]

Can anyone help me with some hints on why this continues to happen?

Bye.
  • 1. Re: javax.comm  - Distribute
    843807 Newbie
    Currently Being Moderated
    I have read 20 forums regarding this, and learned nothing.

    Getting java.comm working on my system was easy, because I am a genius and 100 times smarter than everyone here.

    But, even in my infinite wisdom, I can't see how I am going to distribute the comm.jar with my application without gleaning the location of the java runtime engine on the target system and implanting the properties file.

    I want to drag-and-drop the jar into my jar, and distribute it, and it will work.

    Instead, I have to waste my whole life scratching through forums and getting nowhere.
    I want to smash something.
    I want to take the stupid comms properties file and shove it up someones backside.
  • 2. Re: javax.comm  - Distribute
    843807 Newbie
    Currently Being Moderated
    I have read 20 forums regarding this, and learned
    nothing.

    Getting java.comm working on my system was easy,
    because I am a genius and 100 times smarter than
    everyone here.
    Then how are we supposed to help you, Oh Great One?
  • 3. Re: javax.comm  - Distribute
    843807 Newbie
    Currently Being Moderated
    "But, even in my infinite wisdom, I can't see how I am going to distribute the comm.jar with my application without gleaning the location of the java runtime engine on the target system and implanting the properties file."

    Infinite wisdom...
    And you can't see how.

    What a genious!!!
  • 4. Re: javax.comm  - Distribute
    843807 Newbie
    Currently Being Moderated
    Hi!

    How do I install the javax.comm package properly on my PC? I have downloaded the comm.jar file but what else do I need? Where can I find the comm.properties file?

    My problem is:

    when I do:
    Enumeration portList = CommPortIdentifier.getPortIdentifiers();
    I get nothing, no ports are found.
    and
    System.getProperty("javax.comm.properties")
    gives me null...

    Please help me!

    BR
    Ola
  • 5. Re: javax.comm  - Distribute
    843807 Newbie
    Currently Being Moderated
    Hi,

    where can I find the comm.jar package?
    I am starting with serial port communication and I can't make it with this one.

    Try to import it somewhere in C:\Program Files\Java\jdk1.6.0... and so...
    I can't find where exactly are the standard java.util / java.IO and similar packages.But it must be around there.

    Tell me if you find them :)

    All the best,
    Vlatko
  • 6. Re: javax.comm  - Distribute
    843807 Newbie
    Currently Being Moderated
    Unlike some others I can sympathise.

    see - new post http://forums.sun.com/thread.jspa?threadID=5335321

    If you wish I can post code.

    Jim
  • 7. Re: javax.comm
    822264 Newbie
    Currently Being Moderated
    Hi every1

    We've been using a lot of time on getting javax.comm to work and found that it was the COM driver which was causing the problems on Windows 7.
    If the driver is also your problem and you're using Windows 7 or possibly Vista then here's a solution :)
    http://www.akosta.dk/category/technical-notes/

    Hope you get it to work!