Monday, 9 September 2013

Shellcript to install OpenJDK and Apache Tomcat automatically in Ubuntu

Shellcript to install OpenJDK and Apache Tomcat automatically in Ubuntu

pI'm stucking when trying to install OpenJDK and Apache Tomcat in Ubuntu
with the following script: #!/usr/bin/env bash/p precodeapt-get update
apt-get install -y openjdk-6-jdk export
JAVA_HOME=/usr/lib/jvm/java-6-openjdk export PATH=$PATH:$JAVA_HOME/bin
/code/pre pWhen I executed this script, it didn't set environment for
JAVA_HOME. Could you show me what problem occurred here? Thanks in
advanced./p

No comments:

Post a Comment