add a comment explaining a common failure mode
[eltron.git] / src / com / megacz / eltron / Eltron.java
index 33c090b..ff030f4 100644 (file)
@@ -6,6 +6,21 @@ import java.io.*;
 import java.util.*;
 import gnu.io.*;
 
+/*
+
+If you're on a mac and you get the error below, you need to create
+/var/lock and make it writable.
+
+Exception in thread "main" gnu.io.PortInUseException: No such file or directory in open
+at gnu.io.RXTXPort.open(Native Method)
+at gnu.io.RXTXPort.<init>(RXTXPort.java:84)
+at com.megacz.eltron.Eltron.detectPort(Eltron.java:26)
+at com.megacz.eltron.Eltron.print(Eltron.java:37)
+at com.megacz.eltron.Eltron.main(Eltron.java:14)
+
+
+ */
+
 /** code to control an Eltron */
 public class Eltron {