CommPortIdentifier and JRE1.6
Hi
I have built an applet,signed all the jars it uses and when i print out a debug line in the CommPortIdentifier class, the part where it lists the available ports, it returns false. This leads me to believe that for some reason the CommPortIdentifier class can't find any ports.
Just for development reasons i have set the permission in the java.policy file to this,
grant{
permission java.security.AllPermission;
permission java.util.PropertyPermission"*","read,write";
permission javax.comm.properties"*","read";
permission java.awt.AWTPermission"accessEventQueue";
};
and in my applet right int he begining i have
.......
System.setSecurityManager(null);
...........
So my question is:
"Am i missing a step (Security or Code wise) in getting the CommPortIdentifier class to get a list of my available ports?"
Thnx
[1136 byte] By [
monk3ya] at [2007-11-27 7:58:03]

# 1
Ok solution.....to my problem anywayz, :)
i googled javax.comm.properties , since i couldn't find the file anywhere else and it came up with this
http://www.fms.indiana.edu/time/files/javax.comm.properties
Thats the actual file. So just make a file called javax.comm.properties and stick that file in the
C:\Program Files\Java\jre1.6.0_01\lib (or wherever you JRE is installed)
directory u might have to copy the win32com.dll somehwere in there too, i dunno, i'm too excited to find out teh exact workings of it so far, lol.
As soon as i have it all figured out i will post back here. But now i have an applet that can read a serial port
Thanks to all who have helped me get to this point, from the signing applet part to here, :)
Any questions, i'll be glad to help i know how frustreating it can get, :)
Smilies all round
:) :) :) :)