I'm building a program that needs to be installed on Windows machines for which I do not have write access to %JAVA_HOME%/lib.
Is there anywhere else I can move javax.comm.properties to other than %JAVA_HOME%/lib?
According to the Java COM API FAQ:
Q: My application does not find any ports when it enumerates available ports.
A: In order for the Java communications API to find ports the file javax.comm.properties must be in the correct place. The preferred location is in /lib. See the installation instructions for alternate locations and further information.
Where can I find the Sun installation instructions that contain these alternate locations?
Base on things that a guy said over here: https://forums.oracle.com/forums/thread.jspa?threadID=1316406
You can put the file javax.comm.properties where you have laid comm.jar. But then to run the program, you should specify the path which points to comm.jar like this:
Hope it helps!