javax.comm.properties and win32com.dll
Hi
I have tried searching the forums with no luck, and google
I there a workaround or a solution to not having to place the javax.comm.properties file and the win32com.dll file in their respective forlders?
I can get access to the comm ports and everything works fine if i put those files where they are meant to go.
Unfortunatley i need my applet to take care of either placing the files where they are meant to go or finding these 2 critical files.
my applet init method is this
publicvoid init(){
System.setSecurityManager(null);
setLayout(new FlowLayout());
Panel top =new Panel();
top.setLayout(new FlowLayout());
top.add(mybutton);
top.add(myText);
mybutton.addActionListener(new ActionListener(){
publicvoid actionPerformed(ActionEvent e){
if(getPort())
readTag();
else
System.err.println("Boo Hoo");
myText.setText(""+myTag[1]);
}});
myText.setPreferredSize(new Dimension(200,20));
add("Center",top);
}
I have tried doing this
System.loadLibrary("com.sun.comm.Win32Driver");
and this
CommDriver commDriver = (CommDriver)Class.forName("com.sun.comm.Win32Driver").newInstance();
commDriver.initialize();
with no luck
Any suggestions?
:)

