0
I am configuring a virtual machine to install JDK 7, Tomcat 7, Jboss EAP 7 and Postgresql. Follow the project on Github for anyone interested: cresol-enviroment-Vagrant.
I’m at the part where you need to add the JAVA_HOME
in the archive /etc/profile
, but when executing the following command:
sudo sed -i 'JAVA_HOME=/usr/lib/jvm/jdk7u79' /etc/profile
Is returning the error message:
sed: -e Expression #1, char 1: Unknown command: `J'
How can I add lines that refer to the JDK directory path correctly?
References:
(+1) but it seems to me that the
$a
is the most.– JJoao
Right, @Jjoao. Thanks for the warning.
– Marcus Nunes