Re: latest curve ball Install JDK6 on FC7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Phil Clyde escribío:
HELP....
Does anyone have a step by step for install of JDK6 on Fedora Core 7?
so far when I get a FRESH how to....Jpackage, Sun or Fedora has changed something
Jdk version is 6u5
Jpackage is 1.7
Base install I586 Fedora default layout and updated

Thanks in advance!!!!!
Phil Clyde

I am trying to do a source build in and MUST have Sun 1.6 installed


Phil,

This is what I did to have the sun JDK running on my F8 system. It is probably over kill, but I have NEVER had a problem.

Get the latest from sun as a linux self extracting file. I installed it under /usr/local/java.

I then made two symbolic links.  One that points to the installed jdk, but is called jdk:

/usr/local/java/jdk -> /usr/local/java/jdk1.6.0_05

I do this so that the next time I install a new java, I only need to point /usr/local/java/jdk to the new directory.

Then I have a symbolic link to the /usr/local/java/jdk

 /usr/jdk -> /usr/local/java/jdk

Then I wrote a script that fixes all of fedoras' alternative cruft

__BEGIN__
#!/bin/bash

if test -f /proc/sys/fs/binfmt_misc/jarexec
then
  echo '-1' > /proc/sys/fs/binfmt_misc/jarexec
fi
if test -f /proc/sys/fs/binfmt_misc/register
then
  echo ':jarexec:M::PK\x03\x04::/usr/jdk/jre/lib/jexec:' \
    > /proc/sys/fs/binfmt_misc/register
fi

/usr/sbin/alternatives \
  --install /usr/bin/java java /usr/jdk/bin/java 17000 \
  --slave /usr/lib/jvm/jre jre /usr/jdk/jre \
  --slave /usr/lib/jvm-exports/jre jre_exports /usr/jdk/jre \
  --slave /usr/bin/keytool keytool /usr/jdk/bin/keytool \
  --slave /usr/bin/orbd orbd /usr/jdk/bin/orbd \
  --slave /usr/bin/pack200 pack200 /usr/jdk/bin/pack200 \
  --slave /usr/bin/policytool policytool /usr/jdk/bin/policytool \
  --slave /usr/bin/rmid rmid /usr/jdk/bin/rmid \
  --slave /usr/bin/rmiregistry rmiregistry /usr/jdk/bin/rmiregistry \
  --slave /usr/bin/servertool servertool /usr/jdk/bin/servertool \
  --slave /usr/bin/tnameserv tnameserv /usr/jdk/bin/tnameserv \
  --slave /usr/bin/unpack200 unpack200 /usr/jdk/bin/unpack200 \
  --slave /usr/share/man/man1/java.1 java.1 /usr/jdk/man/man1/java.1 \
  --slave /usr/share/man/man1/keytool.1 keytool.1 /usr/jdk/man/man1/keytool.1 \
  --slave /usr/share/man/man1/orbd.1 orbd.1 /usr/jdk/man/man1/orbd.1 \
  --slave /usr/share/man/man1/pack200.1 pack200.1 /usr/jdk/man/man1/pack200.1 \
  --slave /usr/share/man/man1/policytool.1 policytool.1 /usr/jdk/man/man1/policytool.1 \
  --slave /usr/share/man/man1/rmid.1 rmid.1 /usr/jdk/man/man1/rmid.1 \
  --slave /usr/share/man/man1/rmiregistry.1 rmiregistry.1 /usr/jdk/man/man1/rmiregistry.1 \
  --slave /usr/share/man/man1/servertool.1 servertool.1 /usr/jdk/man/man1/servertool.1 \
  --slave /usr/share/man/man1/tnameserv.1 tnameserv.1 /usr/jdk/man/man1/tnameserv.1 \
  --slave /usr/share/man/man1/unpack200.1 unpack200.1 /usr/jdk/man/man1/unpack200.1

/usr/sbin/alternatives \
--install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so 17000 MYCLASSPATH

__END__

Then I put in /etc/profile.d the following to set the paths, etc:
Call it jdk.sh

__BEGIN__
# Java Developers Kit

# This test keeps the package from ever being sourced twice.  So you
#  can feel free to include packages in other packages that need them.
#

AWT_TOOLKIT=MToolkit

THREADS_FLAG=native; export THREADS_FLAG

JAVAHOME=/usr/jdk

JAVAWS_HOME=/usr/jdk/jre/javaws

JAVA_HOME=${JAVAHOME}
JAVA_BASE=/usr/local/java

JREHOME=${JAVAHOME}/jre

ANT_HOME=/usr/local/java/ant

if ! echo ${PATH} | grep -q ${JAVAHOME}/bin ; then
   PATH=${JAVAHOME}/bin:${ANT_HOME}/bin:${PATH}
fi

export JAVAHOME JAVA_HOME ANT_HOME PATH JREHOME JAVAWS_HOME JAVA_BASE
__END__


Good luck.
--
Brian Millett - [ Laurel Takeshima, "The Gathering"]
"This is Lieutenant Commander Laurel Takeshima. Our docking bays stand
 ready to receive you. Babylon 5 is open for business."


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux