1.3.3. Customize Java environment
Before starting the installation of Redhat FUSE or Apache Tomcat there is to install Java SE 7 in the Operating System.
Download and install Java SE 7
1- Download the Java SE 7 JDK and required components.
Download the development kit, documentation and cryptography extension for Java SE 7.
Used ~/Downloads/bundle_fuse/JAVA/SE7/as download directoryFileName:
Download Java SE Development Kit 7u80, you must accept the license and use the Oracle credentials to download:
jdk-7u80-linux-x64.tar.gz
FileName:
Download Java SE Development Kit 7u80 Documentation, the documentation for the JDK:
jdk-7u80-docs-all.zip
http://www.oracle.com/technetwork/java/javase/downloads/java-se-7-doc-download-435117.html
FileName:
Download Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7:
UnlimitedJCEPolicyJDK7.zip
http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/jce-7-download-432124.html
2- Removal of components.
The JDK, the documentation and the JCE are extracted in / usr / local / with the following actions.Administrator privileges
su root
Extract the JDK in /usr/ local/ and remove the tablet
cd /usr/local
cp ~/Downloads/bundle_fuse/JAVA/SE7/jdk-7u80-linux-x64.tar.gz .
tar xzf jdk-7u80-linux-x64.tar.gz
rm jdk-7u80-linux-x64.tar.gzWe extract the documentation and the extension of cryptography
cd /usr/local/jdk1.7.0_80/
cp ~/Downloads/bundle_fuse/JAVA/SE7/jdk-7u80-docs-all.zip .
cp ~/Downloads/bundle_fuse/JAVA/SE7/UnlimitedJCEPolicyJDK7.zip .
unzip jdk-7u80-docs-all.zip
rm jdk-7u80-docs-all.zip
unzip UnlimitedJCEPolicyJDK7.zip
cd UnlimitedJCEPolicy/
cp -i *** ../jre/lib/security/
cd ..
chown root:root -R jdk1.7.0_80/Download and install other Java tools
1- Download additional Java tools
Download Apache Ant, Apache Groovy and Apache Maven.
Used ~ /Downloads/bundle_fuse/JAVA/TOOLS/ as download directoryFileName:
Download Apache Ant 1.9.9:
apache-ant-1.9.9-bin.tar.gz
http://apache.rediris.es//ant/binaries/apache-ant-1.9.9-bin.tar.gz
FileName:
Download Apache Ant 2.4.9:
apache-groovy-binary-2.4.9.zip
https://bintray.com/groovy/maven/download_file?file_path=apache-groovy-binary-2.4.9.zip
FileName:
Download Apache Ant 3.3.9:
apache-maven-3.3.9-bin.tar.gz
2- Extracción de los componentes.
Se extraen el JDK, la documentación y el JCE en /usr/local/ con las siguientes acciones.Administrator privileges
su root
Copy the compressed to /usr/local/
cp ~/Downloads/bundle_fuse/JAVA/TOOLS/apache-ant-1.9.9-bin.tar.gz .
cp ~/Downloads/bundle_fuse/JAVA/TOOLS/apache-maven-3.3.9-bin.tar.gz .
cp ~/Downloads/bundle_fuse/JAVA/TOOLS/apache-groovy-binary-2.4.9.zip .Extract compressed
tar xzf apache-ant-1.9.9-bin.tar.gz
tar xzf apache-maven-3.3.9-bin.tar.gz
unzip apache-groovy-sdk-2.4.9.zipDelete comrpessed
rm apache-ant-1.9.9-bin.tar.gz
rm apache-maven-3.3.9-bin.tar.gz
rm apache-groovy-binary-2.4.9.zip- Creating support scripts for Java environment
In this section, support scripts are created in order to configure and reconfigure the Java environment in the machine quickly and easily.
1- Create the directory and files to fill | |
cd ~ | |
2- Fill in the scripts with their respective contents | |
Contens of ~/bin/setenv7.0.80_BASE | |
| |
Contents of ~/bin/setenv7.0.80_FULL | |
| |
3- Add alias for scripts to: .bashrc | |
Edit ~/.bashrc and add the line instructions | alias SJ7080BASE='source $HOME/bin/setenv7.0.80_BASE' |
Avvale 2024