Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to add mysql Connector jar file to classpath and by browsing through the net. I read that a global way to do it is to update the /etc/enviroment but the file opens as readonly. What I don't get is that I am the only one with the account and the terminal does show '$' so how do I get write permission on /etc/environment?

If there is some-other way to fix the issue that I am facing --

(Issue: com.mysql.Driver not found in classpath)

-- feel free to share it with me.

I encountered this when setting up Bamboo -- but I don't know if that's relevant so you might skip the last line and provide the solution.

Thank you in advance.

share|improve this question
You can edit that file with root permissions. Eg. sudo nano /etc/environment –  Radu Rădeanu Apr 19 '14 at 8:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.