1

I am running a server application and accessing the database for operations, and I am getting the error as even though I have configured the javax.comm.properties in my project

javax.comm:  Can't find javax.comm.properties!

java.io.IOException: javax.comm: platform driver class name = null
                 (Check 'driver' property in javax.comm.properties)

at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:244)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at com.rtc.actions.downloads.MySerialPort.openMyPort(MySerialPort.java:88)
at com.rtc.actions.downloads.Downloads.<init>(Downloads.java:70)
at com.rtc.actions.downloads.MasterDownloadAction.execute(MasterDownloadAction.java:37)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Roman C
  • 49,761
  • 33
  • 66
  • 176
user3017166
  • 21
  • 1
  • 3

1 Answers1

1

javax.comm.properties should be placed in the JAVA_HOME/jre/lib/ext see details.

The first step for using this package is placing the proper files in respective JAVA_HOME’s directory folders.

1) win32com.dll : keep it in JAVA_HOME’s bin directory. In my case I placed it here C:\Program Files\Java\jdk1.6.0_05\jre\bin

2)comm.jar : place it in JAVA_HOME’s lib\ext directory. Mine was in C:\Program Files\Java\jdk1.6.0_05\jre\lib\ext

3)javax.comm.properties : same as above. So this file goes in C:\Program Files\Java\jdk1.6.0_05\jre\lib\ext

Roman C
  • 49,761
  • 33
  • 66
  • 176