Wednesday, May 4, 2011

How to install The Java Communications API(javax.comm) in a Windows Environment

Hi Every one....,
In this post I'm gonna tell you how to install Java Communication API on Windows Operating System.
Well every one of us Java Programmers may come across in our career to read Data From or Write Data to Serial Port devices like : GSM modem, RFID Reader and some other devices that specifically made to Serial ports.
So in that case we need to install Java communication API manually along with our respective JDK's .
Here are some steps explained Where to Download this API and How Install.


You can get This Api any where by just Googling it.
But it comes with Bunch of files which you need to copy into several respective location on your PC that's quite creepy thing, i guess...
So I've wrote small simple Installer Which will do all those creepy thing for you people.
The Download link is:

Password: javax.comm

The rar archive contains Installer an Api as well.

Once you download this File you will get a rar File named "javax.comm.rar".
Unzip it with the password that i provided above.
You'll get a Folder named javax.comm.
Inside that Folder you Will see
  • comm.jar                     [Part of API]
  • [Part of API]
  • win32com.dll               [Part of API]
  • javax.comm API INSTALLER.exe [Simple Installer That I wrote]
  • RADME.txt and [Instructions to install Manually, IN CASE THE INSTALLER FAILS)]
  • Sample code to Read from Serial Port(No mater Which Device it is)
Double Click on the Installer [ javax.comm API INSTALLER.exe ], it will install API for itself.

[*Note: Do not move the Installer(javax.comm API INSTALLER.exe) out of the folder, coz i wrote it copy the files from current folder. So it ain't get installed if Do so]

Manual Installing Instructions (In case if downloaded API from other site or if you lost the README.txt filr above mentioned)

Installation consists of 3 Phases:

Phase1:- Copy comm.jar to

  •  %JAVA_HOME%/lib   
[ In my case C:\Program Files\Java\jdk1.6.0\lib ]
  • %JAVA_HOME%/jre/lib/ext
[ In my case C:\Program Files\Java\jdk1.6.0\jre\lib\ext ]

Phase 2:- Copy win32com.dll to

  •  %JAVA_HOME%/bin
 [ In my case C:\Program Files\Java\jdk1.6.0\bin ]
  •  %JAVA_HOME%/jre/bin
 [ In my case C:\Program Files\Java\jdk1.6.0\jre\bin ]
  • %windir%System32
[ In my case C:\Windows\System32

Phase 3 : Copy to
  • %JAVA_HOME%/lib
  [ In my case C:\Program Files\Java\jdk1.6.0\lib ]
  • %JAVA_HOME%/jre/lib
     [ In my case C:\Program Files\Java\jdk1.6.0\jre\lib

    That's It Lads:)
    Enjoy | Have a Great Time | By KISHOR


    1. This comment has been removed by the author.

    2. thanks. i download the api from the website but was lost. thanks again it worked and i tried the sample too and it worked but could you resend the sample code with comments? i am a beginner trying to make sense of the code. i do need some help too with reading and sending sms from a gsm modem. i am at . thanks in advance. could

    3. sir i ran the setup successfully ,yet not able to import in eclipse or help...

      ankit jolly

      1. Hello troubleseeker

        In my installer i copied the necessary files to JDK not JRE.

        Eclipse and Netbeans use JRE to run java codes.

        So thanks for pointing out the problem.



    4. Hello there

      I want to download the API but megaupload is off --'
      Can you send me by email or other way?

      Thank you

      1. Hello Clayton....,
        I'm sorry for not replying for long time.
        Now i uploaded it to MEDIAFIRE...


    5. Sir,

      I installed it with your installer and also in the manual method. It still doesnt seem to be working and i dont know why. Could you help me out?

      1. Hi Deepa..,

        I'll be glad to help.
        Give me some further details.
        Which IDE you are using?[Eclipse? Netbeans? JCreator?]
        which version of JDK you are using?

    6. hey....i cannot access the file that you have uploaded on mediafire due to it's download limits on password protected files...
      can you please do the needful....

      Thanking you..:)

      1. Hi Shwetha Agarwal.
        Sorry for late reply.
        If you can't download the distribution please mention your email I'll send the it through mail itself.
        you just drop a test mail to my email address
        I'll surely get back to you.

      2. Hi kishor i too couldn't able to download the file. BTW i try to sent a mail to you using above mail address but it says mail address is wrong :(

      3. Sorry the correct mail address is

    7. Hi. I can't access the file through the mediafire link. Could you send me the file via mail? Thanking you very much.. my mail is Thank you again!

    8. Earn quick cash from home....

    9. Hi , can you send the file to
      Thank you.

    10. Hi , can you send the file to
      Thank you.

    11. sir hav u written the installer code for jre?? i hv to use netbeans..what should i do for mentioned in above post installation fr jre is different..wat do i do fr netbeans?? pls hlp me out..its urgent

      1. Dear krutika..,

        Sorry for not replying instantly. If you are using NETBEANS there is a sperate method to use Comm api.
        Please give me some time of around 26hrs.,i'll figure out a way to use in netbeans.
        I'll surely get back to you as soon as i got the answer.
        In the mean time please state the version of netbeans you are using.

    12. its vary useful for beginner, thanks lot, since last many days i was struggling to install api's now i got succeeded

    13. Hi , can you send the file to
      Thank you.

    14. I do not have the jdk folder should i download it?

    15. Hi Kishore ,
      i am using both netbeans as well as Eclipse , but the code seems to not running and also i checked i cant see the jar flle in my Jre folder in eclipse .
      could you please help me out on this ??

    16. how to do in mac any help is appreciated?

    17. This comment has been removed by the author.

    18. What is the password for the rar file?

    19. i download that zip folder but javax.comm API INSTALLER.exe not in folder

    20. Hi Kishor,
      Code is running fine, but i am getting "time out at setp2" error. Please help

    21. Can't load IA 32-bit .dll on a AMD 64-bit platform

      I am getting this error. can I get a link for downloading 64 bit file.

    22. Can't load IA 32-bit .dll on a AMD 64-bit platform. help plz

    23. What is the password to open zip file

    24. This comment has been removed by a blog administrator.

    25. You're a lifesaver! Thanks!!

    26. Worked for me... both installer and manual way...
      Thanks so much

    27. Thank you for putting this together.

      Symantec flagged two infections in your API installer - maybe that's a false positive from the tools you used to create the installer - or maybe someone infected your archive on Mediafire.

    28. This comment has been removed by a blog administrator.

    29. This comment has been removed by a blog administrator.

    30. This comment has been removed by a blog administrator.

    31. This comment has been removed by a blog administrator.

    32. This comment has been removed by a blog administrator.

    33. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
      Devops training in tambaram|Devops training in velachery|Devops training in annanagar|Devops training in sholinganallur

    34. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

      rpa training in Chennai | rpa training in velachery

      rpa training in tambaram | rpa training in sholinganallur

    35. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts read this.
      python training institute in chennai
      python training in velachery
      python training institute in chennai

    36. Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting.So know it's helpful.
      Blueprism training in Chennai

      Blueprism training in Bangalore

    37. From your discussion I have understood that which will be better for me and which is easy to use. Really, I have liked your brilliant discussion. I will comThis is great helping material for every one visitor. You have done a great responsible person. i want to say thanks owner of this blog.
      Data science training in tambaram
      Data Science training in anna nagar
      Data Science training in chennai
      Data science training in Bangalore
      Data Science training in marathahalli
      Data Science training in btm

    38. I'm here representing the visitors and readers of your own website say many thanks for many remarkable
      java online training | java training in pune

      java training in chennai | java training in bangalore


    Note: Only a member of this blog may post a comment.