I have a program made by using RXTX library (or jSerialComm, I'm not sure because it seems that it takes any of the 2 same code) the data sent by arduino sensors. Then I graph them using the JFreeChart library. Everything works like a charm while I run it in NetBeans. The problem is that when I compile it, at the time of pressing the button that communicates with the board and in turn generates the graphic, it does not communicate or generate the graphic.
I do not put the program code because there are more than 700 lines of code.