Outils pour utilisateurs

Outils du site


sme:java

Installation de java sur SME 7

de http://emnaz.blogspot.com/2009/06/sun-java-for-sme-server-7.html

cd /tmp

rpm --import http://www.jpackage.org/jpackage.asc

db yum_repositories set jpackage-generic repository \
Name 'JPackage (free), generic' \
MirrorList 'http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=1.7' \
GPGCheck yes \
Visible yes \
status enabled

db yum_repositories set jpackage-rhel repository \
Name 'JPackage (free) for Red Hat Enterprise Linux $releasever' \
MirrorList 'http://www.jpackage.org/mirrorlist.php?dist=redhat-el-$releasever&type=free&release=1.7' \
GPGCheck yes \
status enabled

db yum_repositories set jpackage-generic-nonfree repository \
Name 'JPackage (non-free), generic' \
MirrorList 'http://www.jpackage.org/jpackage_generic_nonfree_1.7.txt' \
GPGCheck yes \
status enabled

expand-template /etc/yum.smerepos.d/sme-base.repo
yum install jpackage-utils

wget http://mirrors.dotsrc.org/jpackage/1.7/generic/SRPMS.non-free/java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm
rpm -ivh java-1.6.0-sun-1.6.0.11-1jpp.nosrc.rpm
wget http://besme.googlecode.com/files/java-1_6_0-sun.spec
mv java-1_6_0-sun.spec /usr/src/redhat/SPECS/java-1.6.0-sun.spec

recuperer le jdk et jre la : http://java.sun.com/products/archive/

mv jdk-6u14-linux-i586.bin /usr/src/redhat/SOURCES/
rpmbuild -bb /usr/src/redhat/SPECS/java-1.6.0-sun.spec
yum localinstall /usr/src/redhat/RPMS/i586/java-1.6.0-sun-*.rpm
/usr/sbin/alternatives --config java
sme/java.txt · Dernière modification: 2017/04/11 15:13 (modification externe)