ramjeev -2 Junior Poster in Training

Hi everyone,
I can access com port while running application from command prompt.
But, I can't while running app by clicking .jar file,rest are works fine.

Is there any way to setpath programatically?

Thanks in advance.