Re: java install

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

 



On Sat, 2007-10-13 at 15:00 +0100, michael wrote:
> On Fri, 2007-10-12 at 22:14 -0400, Mark C. Allman wrote:
> > On Sat, 2007-10-13 at 11:41 +1000, David Timms wrote:
> > > michael wrote:
> > > > On Fri, 2007-10-12 at 17:25 +0100, michael wrote:
> > > >> I've had a quick lot but got confused -- is there a JRE and JDK/SDK that
> > > >> comes with Fedora FC7?
> > > >> Thanks, M
> > > >>
> > > > 
> > > > This is for Intel Core2 Duo, so I've downloaded AMD64 (same instruction
> > > > set) from java.com and then (as per
> > > > http://java.com/en/download/help/5000011300.xml#download) run the
> > > > binary:
> > > > 
> > > > 
> > > > mkb@veri:~/src$ su
> > > > Password: 
> > > > [root@veri src]# cd /usr;ls
> > > > bin  games    kerberos  lib64    local  share  tmp
> > > > etc  include  lib       libexec  sbin   src
> > > > [root@veri usr]# cd local;ls
> > > > bin  games    lib    libexec     matlab_7_4_DVD  share
> > > > etc  include  lib64  matlab_7_4  sbin            src
> > > > [root@veri local]# mkdir java
> > > > [root@veri local]# cd java
> > > > [root@veri java]# chmod a+x ~mkb/src/jre-6u3-linux-amd64-rpm.bin 
> > > > [root@veri java]# ls -l ~mkb/src/jre-6u3-linux-amd64-rpm.bin
> > > > -rwxr-xr-x 1 mkb mkb 17643526 2007-10-12
> > > > 17:45 /home/mkb/src/jre-6u3-linux-amd64-rpm.bin
> > > > [root@veri java]# ~mkb/src/jre-6u3-linux-amd64-rpm.bin
> > > > Sun Microsystems, Inc. Binary Code License Agreement
> > > > 
> > > > for the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6
> > > > 
> > > > SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
> > > > SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
> > > > THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
> > > > CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
> > > > {snip}
> > > > Do you agree to the above license terms? [yes or no]
> > > > yes
> > > > Unpacking...
> > > > Checksumming...
> > > > Extracting...
> > > > UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@xxxxxxxxxxxxx).
> > > >   inflating: jre-6u3-linux-amd64.rpm  
> > > > Preparing...                ###########################################
> > > > [100%]
> > > >    1:jre                    ###########################################
> > > > [100%]
> > > > Unpacking JAR files...
> > > >         rt.jar...
> > > >         jsse.jar...
> > > >         charsets.jar...
> > > >         localedata.jar...
> > > >  
> > > > Done.
> > > > [root@veri java]# ls -alt
> > > > total 17476
> > > > drwxr-xr-x  2 root root     4096 2007-10-12 17:48 .
> > > > drwxr-xr-x 15 root root     4096 2007-10-12 17:46 ..
> > > > -rw-r--r--  1 root root 17846983 2007-09-25 08:53
> > > > jre-6u3-linux-amd64.rpm
> > > > 
> > > > 
> > > > but both yum and rpm fail to do anything more (unlike the instructions):
> > > > 
> > > > [root@veri java]# yum localinstall ./jre-6u3-linux-amd64.rpm 
> > > > Setting up Local Package Process
> > > > Examining ./jre-6u3-linux-amd64.rpm: jre - 1.6.0_03-fcs.x86_64
> > > > ./jre-6u3-linux-amd64.rpm: does not update installed package.
> > > > Nothing to do
> > > > [root@veri java]# ls -alt
> > > > total 17476
> > > > drwxr-xr-x  2 root root     4096 2007-10-12 17:48 .
> > > > drwxr-xr-x 15 root root     4096 2007-10-12 17:46 ..
> > > > -rw-r--r--  1 root root 17846983 2007-09-25 08:53
> > > > jre-6u3-linux-amd64.rpm
> > > > [root@veri java]# rpm -iv jre-6u3-linux-amd64.rpm 
> > > > Preparing packages for installation...
> > > >         package jre-1.6.0_03-fcs is already installed
> > > > [root@veri java]# ls
> > > > jre-6u3-linux-amd64.rpm
> > > > [root@veri java]# 
> > > > 
> > > > ie there is no jre* subdir...
> > > > 
> > > > Any ideas what's going on?
> > > Maybe, after a rpm -qa j\*
> > > 
> > > DaveT.
> > > 
> > I'm not sure what your question is.  You now have Java installed.  Why
> > are you trying to re-run rpm to install after the bin expanded the rpm
> > and installed it (via rpm)?
> 
> yum (and then rpm) both complained (from above):
> 
> > > [root@veri java]# yum localinstall ./jre-6u3-linux-amd64.rpm 
> > > > Setting up Local Package Process
> > > > Examining ./jre-6u3-linux-amd64.rpm: jre - 1.6.0_03-fcs.x86_64
> > > > ./jre-6u3-linux-amd64.rpm: does not update installed package.
> > > > Nothing to do
> 
> But previously firefox had complained there was no Java and Sun's
> instructions were saying a new subdir would be installed in current dir
> with the Java stuff therein - this wasn't happening. Hence my OP.
> 
> 
> > It's installed somewhere.  Open up a terminal and type "java -version"
> > and "which java."
> 
> Yes I see them and it appears Java was already there before my yum/rpm
> failures:
> 
> mkb@veri:~$ java --version
> java version "1.5.0"
> gij (GNU libgcj) version 4.1.2 20070925 (Red Hat 4.1.2-27)
> 
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is
> NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 
> 
> mkb@veri:~$ which -a java
> /usr/bin/java
> 
> mkb@veri:~$ ls -lt /usr/bin/java
> lrwxrwxrwx 1 root root 22 2007-07-19 17:06 /usr/bin/java
> -> /etc/alternatives/java*
> 
> 
> And querying rpm/yum shows:
> 
> mkb@veri:~$ yum list installed j*|less
> Installed Packages
> jack-audio-connection-kit.x86_64         0.103.0-1.fc7
> installed       
> jakarta-commons-cli.x86_64               1.0-6jpp_10.fc6
> installed       
> jakarta-commons-lang.x86_64              2.1-6jpp.1.fc7
> installed       
> jakarta-commons-logging.x86_64           1.0.4-6jpp.1
> installed       
> jasper.x86_64                            1.900.1-2.fc7
> installed       
> java-1.5.0-gcj.x86_64                    1.5.0.0-14.fc7
> installed       
> java_cup.x86_64                          1:0.10-0.k.6jpp.1
> installed       
> joystick.x86_64                          1.2.15-20.2.2
> installed       
> jpackage-utils.noarch                    1.7.3-1jpp.3.fc7
> installed       
> jre.x86_64                               1.6.0_03-fcs
> installed       
> jwhois.x86_64                            3.2.3-11
> installed       
> 
> mkb@veri:~$ rpm -qa j*|less
> java_cup-0.10-0.k.6jpp.1
> jakarta-commons-logging-1.0.4-6jpp.1
> jre-1.6.0_03-fcs
> jwhois-3.2.3-11
> joystick-1.2.15-20.2.2
> jpackage-utils-1.7.3-1jpp.3.fc7
> jakarta-commons-lang-2.1-6jpp.1.fc7
> jasper-1.900.1-2.fc7
> jakarta-commons-cli-1.0-6jpp_10.fc6
> java-1.5.0-gcj-1.5.0.0-14.fc7
> jack-audio-connection-kit-0.103.0-1.fc7
> 
> But it does appear that the JRE was installed yest:
> mkb@veri:~$ cd /usr/java;lsalt
> total 32
> drwxr-xr-x  3 root root 4096 2007-10-12 17:48 ./
> lrwxrwxrwx  1 root root   16 2007-10-12 17:48 default
> -> /usr/java/latest/
> lrwxrwxrwx  1 root root   21 2007-10-12 17:48 latest
> -> /usr/java/jre1.6.0_03/
> drwxr-xr-x  5 root root 4096 2007-10-12 17:48 jre1.6.0_03/
> drwxr-xr-x 15 root root 4096 2007-10-12 17:48 ../
> 
> So why does Firefox still not pick up the JRE? In particular, if I go to
> web page 
> 	http://www.grid-support.ac.uk/content/view/81/195/
> and click on 'install' button (which should launch java web start) or go
> to
> 	http://www.grid-support.ac.uk/content/view/259/195/
>  it says i need to install a JRE
> 
> Indeed FF 'about:plugins' seems to have no mention of Java anywhere...
> 
> Any ideas?
> 
I have the Java plugin for Firefox linked in
the /usr/lib/firefox-2.0.0.5/plugins/ directory.  The link is:

libjavaplugin_oji.so ->
<JRE_INSTALL_DIR>/plugin/i386/ns7/libjavaplugin_oji.so

Check your /usr/lib/<YOUR_FIREFOX>/plugins/ directory to see what's
there.  

An install script (probably Sun's JDK) set this up for me.  I usually
use Opera and don't use Firefox much.

-- Mark C, Allman, PMP
-- Allman Professional Consulting, Inc.
-- www.allmanpc.com, 617-947-4263

BusinessMsg -- the secure, managed, J2EE/AJAX Enterprise IM/IC solution





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

  Powered by Linux