If you try to run the Arduino IDE and the RXTX Java library on MacOS Lion and you are hitting a “Serial Port Already in Use” error, try:
$ sudo mkdir /var/lock $ sudo chmod 777 /var/lock
That should hopefully allow you to run them both (though only one at a time!)
If you want interface your Arduino with the Java, see the Arduino documentation.
hi, worked like a charm. just threw together a simple apple script to give none-terminal users a chance to fix it 🙂 see here https://gist.github.com/1419677
thanks for the fix!
Oh, just tried it. Very nice also 🙂
Worked great, however I am very curious to know why.
Do you know any of the technical details?
From what I can discern: permission were changed. (?)
Sorry Scott, I’m don’t know why 🙁
it worked for me as well. Thanks!
Hi, do you know how to solve this problem in windows 7?
Thank you
Sorry Hernan, no 🙁 But if you find a solution, please post it here as it may help others.
it worked for me as well. Thanks a lot.
Thanks a lot man. Search for this problem until I found your blog. You’ve address my port already in use problem. I hope, they update the arduino code base to fix this issue. My environment: Mac OS (Mountain Lion / 10.8.2), Latest Apple Java Update, Arduino 1.0.5)
You’re half man half amazing!!!
Glad it helped! 🙂
Guys I had the same problem and same error . Follow these steps and you could solve the problem:
1. First connect the arduino to a different serial port.
2.Go to device manager and click on the arduino com port .
3.Then click update driver software and click the last option and follow the steps.
You problem will be solved
This worked for me.