Guest User

Untitled

a guest
Jan 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. $javac -classpath RXTXcomm.jar:. SerialTest.java
  2.  
  3. SerialTest.java:3: cannot find symbol
  4. symbol : class CommPortIdentifier
  5. location: package gnu.io
  6. import gnu.io.CommPortIdentifier;
  7. ^
  8. SerialTest.java:4: cannot find symbol
  9. symbol : class SerialPort
  10. location: package gnu.io
  11. import gnu.io.SerialPort;
  12. ^
  13. SerialTest.java:5: cannot find symbol
  14. symbol : class SerialPortEvent
  15. location: package gnu.io
  16. import gnu.io.SerialPortEvent;
  17. ^
  18. SerialTest.java:6: cannot find symbol
  19. symbol : class SerialPortEventListener
  20. location: package gnu.io
  21. import gnu.io.SerialPortEventListener;
  22. ^
  23. SerialTest.java:9: cannot find symbol
  24. symbol: class SerialPortEventListener
  25. public class SerialTest implements SerialPortEventListener {
  26. ^
  27. SerialTest.java:10: cannot find symbol
  28. symbol : class SerialPort
  29. location: class SerialTest
  30. SerialPort serialPort;
  31. ^
  32. SerialTest.java:83: cannot find symbol
  33. symbol : class SerialPortEvent
  34. location: class SerialTest
  35. public synchronized void serialEvent(SerialPortEvent oEvent) {
  36. ^
  37. SerialTest.java:27: cannot find symbol
  38. symbol : class CommPortIdentifier
  39. location: class SerialTest
  40. CommPortIdentifier portId = null;
  41. ^
  42. SerialTest.java:28: cannot find symbol
  43. symbol : variable CommPortIdentifier
  44. location: class SerialTest
  45. Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();
  46. ^
  47. SerialTest.java:32: cannot find symbol
  48. symbol : class CommPortIdentifier
  49. location: class SerialTest
  50. CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();
  51. ^
  52. SerialTest.java:32: cannot find symbol
  53. symbol : class CommPortIdentifier
  54. location: class SerialTest
  55. CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();
  56. ^
  57. SerialTest.java:48: cannot find symbol
  58. symbol : class SerialPort
  59. location: class SerialTest
  60. serialPort = (SerialPort) portId.open(this.getClass().getName(),
  61. ^
  62. SerialTest.java:53: cannot find symbol
  63. symbol : variable SerialPort
  64. location: class SerialTest
  65. SerialPort.DATABITS_8,
  66. ^
  67. SerialTest.java:54: cannot find symbol
  68. symbol : variable SerialPort
  69. location: class SerialTest
  70. SerialPort.STOPBITS_1,
  71. ^
  72. SerialTest.java:55: cannot find symbol
  73. symbol : variable SerialPort
  74. location: class SerialTest
  75. SerialPort.PARITY_NONE);
  76. ^
  77. SerialTest.java:84: cannot find symbol
  78. symbol : variable SerialPortEvent
  79. location: class SerialTest
  80. if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {
  81. ^
  82. 16 errors
  83. MacBook-Pro:src user$ ls
  84. RXTXcomm.jar comm.jar librxtxSerial.jnilib
  85. SerialTest.java librxtxParallel.so librxtxSerial.so
  86. MacBook-Pro:src user$
  87.  
  88. java -Djava.library.path=".:/Users/bill/rxtx/jni" MyClass
Add Comment
Please, Sign In to add comment