-1

i need to set this line

export STUDIO_JDK=/usr/lib/jvm/java-8-openjdk-amd64

according the documentation to setting file... i have try this command to open system file

/etc/environment

but get this

aleksey@aleksey:~$ sudo /etc/environment
[sudo] password for aleksey: 
sudo: /etc/environment: command not found

How i can make it work?

  • 1
    Did you mean sudo nano /etc/enviroment ? – Videonauth May 15 '16 at 18:31
2

You are trying to run /etc/environment as a command. If you want to edit it, you can use nano or vim (if you are beginner I would recomend nano).

Type STUDIO_JDK=/usr/lib/jvm/java-8-openjdk-amd64 inside and press Ctrl+O to save, then Ctrl+X to exit nano.

  • 1
    If OP's editing /etc/environment, export shouldn't be used. – muru May 15 '16 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.