<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to install The Java Communications API in a Windows Environment</title>
	<atom:link href="http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/feed/" rel="self" type="application/rss+xml" />
	<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/</link>
	<description>C++, C, VB.NET, PCB, Electronics, Circuit Design</description>
	<lastBuildDate>Sat, 26 Dec 2009 14:02:38 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Circuit Negma</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11453</link>
		<dc:creator>Circuit Negma</dc:creator>
		<pubDate>Sat, 26 Dec 2009 14:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11453</guid>
		<description>Ok, so I compiled you code on my machine, and as you said it does compile, but I cannot run it on my machine because it is Vista 64-bit machine.

Netbeans IDE shoes the following error every time I try to run the code:
[code] run:
Error loading win32com: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.6.0_17\jre\bin\win32com.dll: Can&#039;t load IA 32-bit .dll on a AMD 64-bit platform
BUILD SUCCESSFUL (total time: 0 seconds)
[/code]

I am going to look for the old codes and post them here.</description>
		<content:encoded><![CDATA[<p>Ok, so I compiled you code on my machine, and as you said it does compile, but I cannot run it on my machine because it is Vista 64-bit machine.</p>
<p>Netbeans IDE shoes the following error every time I try to run the code:</p>
<pre class="brush: plain;"> run:
Error loading win32com: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.6.0_17\jre\bin\win32com.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
BUILD SUCCESSFUL (total time: 0 seconds)
</pre>
<p>I am going to look for the old codes and post them here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Circuit Negma</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11452</link>
		<dc:creator>Circuit Negma</dc:creator>
		<pubDate>Sat, 26 Dec 2009 13:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11452</guid>
		<description>I love to help out, but there is one small problem. My new computer does not have any COM ports, However, I am going to try to compile you code. Also, I am going to look for my old code that did utilize COM ports on my old machine and post it here.</description>
		<content:encoded><![CDATA[<p>I love to help out, but there is one small problem. My new computer does not have any COM ports, However, I am going to try to compile you code. Also, I am going to look for my old code that did utilize COM ports on my old machine and post it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sundarrajan</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11451</link>
		<dc:creator>sundarrajan</dc:creator>
		<pubDate>Tue, 22 Dec 2009 13:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11451</guid>
		<description>hi  sir 

i need a help urgent ... help me for my project

I just need to list the comm ports available in windows. i have successfully the javax.comm package as you have mentioned earlier in this blog.

I m having this program 

&lt;code&gt;
import javax.comm.*;
import java.util.Enumeration;

public class ListPorts {
public static void main(String args[]) {
Enumeration ports = CommPortIdentifier.getPortIdentifiers();
while (ports.hasMoreElements()) {
CommPortIdentifier port = (CommPortIdentifier)ports.nextElement();
String type;
switch (port.getPortType()) {
case CommPortIdentifier.PORT_PARALLEL:
type = &quot;Parallel&quot;;
break;
case CommPortIdentifier.PORT_SERIAL:
type = &quot;Serial&quot;;
break;
default: /// Shouldn&#039;t happen
type = &quot;Unknown&quot;;
break;
}
System.out.println(port.getName() + &quot;: &quot; + type);
}
}
}
&lt;/code&gt;


The above program is compiling well and good in my system.. but when i try to run it its shows me the error as 


Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading
driver com.sun.comm.Win32Driver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialPar
allel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySe
rial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.So
larisDriver



I have done all the things clear.. but i m ambiguous where the problem is .

Thanks in advance 

Please try to run this program in your system and then reply for me</description>
		<content:encoded><![CDATA[<p>hi  sir </p>
<p>i need a help urgent &#8230; help me for my project</p>
<p>I just need to list the comm ports available in windows. i have successfully the javax.comm package as you have mentioned earlier in this blog.</p>
<p>I m having this program </p>
<p><code><br />
import javax.comm.*;<br />
import java.util.Enumeration;</p>
<p>public class ListPorts {<br />
public static void main(String args[]) {<br />
Enumeration ports = CommPortIdentifier.getPortIdentifiers();<br />
while (ports.hasMoreElements()) {<br />
CommPortIdentifier port = (CommPortIdentifier)ports.nextElement();<br />
String type;<br />
switch (port.getPortType()) {<br />
case CommPortIdentifier.PORT_PARALLEL:<br />
type = "Parallel";<br />
break;<br />
case CommPortIdentifier.PORT_SERIAL:<br />
type = "Serial";<br />
break;<br />
default: /// Shouldn't happen<br />
type = "Unknown";<br />
break;<br />
}<br />
System.out.println(port.getName() + ": " + type);<br />
}<br />
}<br />
}<br />
</code></p>
<p>The above program is compiling well and good in my system.. but when i try to run it its shows me the error as </p>
<p>Caught java.lang.ClassNotFoundException: com.sun.comm.Win32Driver while loading<br />
driver com.sun.comm.Win32Driver<br />
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialPar<br />
allel in java.library.path<br />
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySe<br />
rial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.So<br />
larisDriver</p>
<p>I have done all the things clear.. but i m ambiguous where the problem is .</p>
<p>Thanks in advance </p>
<p>Please try to run this program in your system and then reply for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Circuit Negma</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11448</link>
		<dc:creator>Circuit Negma</dc:creator>
		<pubDate>Tue, 08 Dec 2009 14:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11448</guid>
		<description>Hi Jiggy360,

I am sorry but it is going to be a while before I try to figure out what is going on with your port identifier problem. it is the end of the year and I am swamped with work.

However, from the error you posted, it seems that you java compiler can not access the library to identify the ports on your machine. I suggest doing the following:
1. search Google, use keyword: java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier 

link1 : http://www.google.com/#hl=en&amp;source=hp&amp;q=java.lang.NoClassDefFoundError%3A+javax%2Fcomm%2FCommPortIdentifier&amp;btnG=Google+Search&amp;aq=f&amp;aqi=&amp;oq=&amp;fp=5483bb45bcb244db

I also found the following web page on java.lang.NoClassDefFoundError: 

link2 : http://www.practicalembeddedjava.com/tools/javaxcomm.html</description>
		<content:encoded><![CDATA[<p>Hi Jiggy360,</p>
<p>I am sorry but it is going to be a while before I try to figure out what is going on with your port identifier problem. it is the end of the year and I am swamped with work.</p>
<p>However, from the error you posted, it seems that you java compiler can not access the library to identify the ports on your machine. I suggest doing the following:<br />
1. search Google, use keyword: java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier </p>
<p>link1 : <a href="http://www.google.com/#hl=en&amp;source=hp&amp;q=java.lang.NoClassDefFoundError%3A+javax%2Fcomm%2FCommPortIdentifier&amp;btnG=Google+Search&amp;aq=f&amp;aqi=&amp;oq=&amp;fp=5483bb45bcb244db" rel="nofollow">http://www.google.com/#hl=en&amp;source=hp&amp;q=java.lang.NoClassDefFoundError%3A+javax%2Fcomm%2FCommPortIdentifier&amp;btnG=Google+Search&amp;aq=f&amp;aqi=&amp;oq=&amp;fp=5483bb45bcb244db</a></p>
<p>I also found the following web page on java.lang.NoClassDefFoundError: </p>
<p>link2 : <a href="http://www.practicalembeddedjava.com/tools/javaxcomm.html" rel="nofollow">http://www.practicalembeddedjava.com/tools/javaxcomm.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jiggy360</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11447</link>
		<dc:creator>jiggy360</dc:creator>
		<pubDate>Tue, 08 Dec 2009 11:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11447</guid>
		<description>Im not able to run sample program in windows...
Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier

I have installed everything exactly stated above.. still im getting this error 
please help!!!</description>
		<content:encoded><![CDATA[<p>Im not able to run sample program in windows&#8230;<br />
Exception in thread &#8220;main&#8221; java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier</p>
<p>I have installed everything exactly stated above.. still im getting this error<br />
please help!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tuansoibk</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11445</link>
		<dc:creator>tuansoibk</dc:creator>
		<pubDate>Mon, 30 Nov 2009 10:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11445</guid>
		<description>thanks a lot, it&#039;s really helpful!</description>
		<content:encoded><![CDATA[<p>thanks a lot, it&#8217;s really helpful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DINESH Rajapaksha</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11442</link>
		<dc:creator>DINESH Rajapaksha</dc:creator>
		<pubDate>Wed, 11 Nov 2009 07:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11442</guid>
		<description>Thnx a Lot...!! now its wokring ! 
this will help a lot in my Final year project :))


thnx again</description>
		<content:encoded><![CDATA[<p>Thnx a Lot&#8230;!! now its wokring !<br />
this will help a lot in my Final year project <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>thnx again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Circuit Negma</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11441</link>
		<dc:creator>Circuit Negma</dc:creator>
		<pubDate>Tue, 10 Nov 2009 02:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11441</guid>
		<description>Hi Dan,

I was using Windows XP. Then I moved to xp once I was done with my project.

Sorry, I do not know to to get the API working on XP.

However, I knew that to obtain a COM (port) you need to obtain an ownership of the targeted port. Under XP this is very trivial as XP will let you take over the ownership, where as the Vista OS would not let to do until you identify your self as the administrator to gain ownership of that port, thu I could be wrong.

Also, I do not know if this API is compatible with Vista.

try thin one : &lt;a href=&quot;http://www.giovynet.com/serialport.html&quot; rel=&quot;nofollow&quot;&gt;GiovynetSerialPort1.3&lt;/a&gt;

Try to sear google such keywords as : java communication api for vista

hopefully this will help you</description>
		<content:encoded><![CDATA[<p>Hi Dan,</p>
<p>I was using Windows XP. Then I moved to xp once I was done with my project.</p>
<p>Sorry, I do not know to to get the API working on XP.</p>
<p>However, I knew that to obtain a COM (port) you need to obtain an ownership of the targeted port. Under XP this is very trivial as XP will let you take over the ownership, where as the Vista OS would not let to do until you identify your self as the administrator to gain ownership of that port, thu I could be wrong.</p>
<p>Also, I do not know if this API is compatible with Vista.</p>
<p>try thin one : <a href="http://www.giovynet.com/serialport.html" rel="nofollow">GiovynetSerialPort1.3</a></p>
<p>Try to sear google such keywords as : java communication api for vista</p>
<p>hopefully this will help you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11440</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 09 Nov 2009 12:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11440</guid>
		<description>Hi,

I installed as per your instruction. But it is not working for me. What OS you are using?
I am on Windows Vista. Is it possible to access direct IO from the user-mode? as per my knowledge, from windows XP onwards we need a SYS file to access the IO directly. Can you help me out?

Regards,
Dan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I installed as per your instruction. But it is not working for me. What OS you are using?<br />
I am on Windows Vista. Is it possible to access direct IO from the user-mode? as per my knowledge, from windows XP onwards we need a SYS file to access the IO directly. Can you help me out?</p>
<p>Regards,<br />
Dan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smn_07</title>
		<link>http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11418</link>
		<dc:creator>smn_07</dc:creator>
		<pubDate>Mon, 31 Aug 2009 04:19:27 +0000</pubDate>
		<guid isPermaLink="false">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/#comment-11418</guid>
		<description>Hey the how to install java comm api can be found on this page which was posted earlier in this website...

http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/

this will definetly help u out</description>
		<content:encoded><![CDATA[<p>Hey the how to install java comm api can be found on this page which was posted earlier in this website&#8230;</p>
<p><a href="http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/" rel="nofollow">http://circuitnegma.wordpress.com/2007/02/07/how-to-install-the-java-communications-api-in-a-windows-environment/</a></p>
<p>this will definetly help u out</p>
]]></content:encoded>
	</item>
</channel>
</rss>
