I'm having an issue accessing the serial ports with a very simple processing sketch used to drive an arduino.
I've been reading around the forums but all related issues are either slightly different or legacy.
In short, Processing gives me an error when I try to open the serial port that the arduino is connected to. It is seeing the port in use, though I'm fairly sure nothing else is using it. There are no other applications open and I've restarted. To troubleshoot, I've used Terminal and am able to open the port, talk to the arduino, and close the port with no problems at all.
I know variations of this problem have cropped up in the past. Help would be greatly appreciated as I'm not sure what else to try.
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.serial.Serial.<init>(Serial.java:139)
at processing.serial.Serial.<init>(Serial.java:105)
at processingTest01.setup(processingTest01.java:61)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:613)
processing.app.debug.RunnerException: RuntimeException: Error inside Serial.<init>()
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:583)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.<init>()
at processing.serial.Serial.errorMessage(Serial.java:591)
at processing.serial.Serial.<init>(Serial.java:151)
at processing.serial.Serial.<init>(Serial.java:105)
at processingTest01.setup(processingTest01.java:61)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:613)