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?

:)

[2021 byte] By [monk3ya] at [2007-11-27 8:14:58]
# 1

Post Post thought, lol

I can get the 2 files in the same jar file as the signed applet. is there a way to tell the JVM to use these 2 files as if they were placed in the java_home/lib and java_home/bin directory?

One is the javax.comm.properties file and the other is the win32com.dll file

Any suggestions?

Thanks

:)

monk3ya at 2007-7-12 19:59:39 > top of Java-index,Security,Signed Applets...