Installing Sun JDK 1.6 on CentOS
1
CentOS doesn’t have a package for Sun JDK so it has to installed manually. It’s fairly easy but there are some steps to do that. This guide has been tested on CentOS 5.4 x64_86.
Step 1. Initial setup for building RPM
-!- Do this with a non-root user
- Create ~/.rpmmacros
-
$ vim ~/.rpmmacros %_topdir /home/
/rpmbuild %_tmppath %{_topdir}/tmp
-
- Create needed folders:
-
$ mkdir -p ~/rpmbuild/{SOURCES,SRPMS,SPECS,RPMS,tmp,BUILD}
-
- Build environment needs to be complete.