I'm setting up a virtual machine to install JDK 7, Tomcat 7, JBoss EAP 7 and Postgresql. Follow the project on GitHub for those who are interested: cresol-enviroment-vagrant .
I'm in the part where you need to add JAVA_HOME
to the file /etc/profile
, but when executing the following command:
sudo sed -i 'JAVA_HOME = / usr / lib / jvm / jdk7u79' / etc / profile
You are returning the error message:
sed: -e expression # 1, char 1: unknown command: 'J'
How can I do to correctly add rows that relate to the JDK directory path?
References: