So I am working on a medium sized project. I have done everything and tested everything and it turned out fine. I then decied to export the project in jar file, turn out there are some problems
I have isolated the problems and concluded that the external library (in extracted form)
did not work as expected. I then created another project with all the external lib shown here and use a snippet using RXTX lib
JFrame x= new JFrame();
String a= System.getProperty("user.dir");
String cwd = System.getProperty("user.dir");
Enumeration portlistEnum = CommPortIdentifier.getPortIdentifiers();
String port = "";
java.util.List<String> serialPorts = new ArrayList<String>();
CommPortIdentifier xxx = (CommPortIdentifier)portlistEnum.nextElement();
Interesting enough, the label contains nothing. absolutely nothing. Note that I get path followed by 1 (I am using 1 usb port) in Intellij.
What is going on and what can I do to fix it.