ok guys, this thing is SOLVED!!! yeahhhh!!!
thanks first off to those who responded. i appreciate it!
please refer to my original post. the first 2 installations following sun's instructions were a definite no-no per fedora core 4 site. the 4rth step from stanton, i don't know why it did not work for me. but again, i read some threads on different forums and found a lot got this one working so you may want to try this step first.
now, the 3rd step, which came from
http://fedoranews.org/mediawiki/inde...e_Java_for_FC4
did not work for me the first time i did it because "i was not thinking". the problem was i downloaded jdk 1.5 version 6 and tried to rebuild from jpackage using java 1.5 version 5. wenkkkk!!! when you go to jpackage to download there isn't a version 6 (as of today 1/8/2006) only version 5. so when it did not compile and run, i considered it as a fail. anyway, after i doing stanton's second option and failed, i went back and do stanton's first option which is using jpackage. here's the thing:
**follow the instructions as listed, from the link above or scroll below. i copied the steps here just in case their site is inaccessible. but make sure to download "jdk 1.5 version 5" from sun's website. i had a hard time finding it, but here's the link:
https://jsecom16d.sun.com/ECom/EComA...F407E0B143D86F
i registered here, provided basic personal info etc. then after your logged in, copy and paste this link to the same browser you're using (just to make you stay logged in):
https://jsecom15k.sun.com/ECom/EComA...37D07538C9779C
then download the appropriate file. remember to ger ***.linux-i586.bin and NOT the ***.linux-i586.rpm.bin. that should do it, just follow the rest of the installation instructions.
goodluck and have fun!!!!
***********************************************
stanton's site (there's a lot of goodies here - a must check out for noobs like me!)
http://stanton-finley.net/fedora_cor...otes.html#Java
********************************************
STEP / INSTRUCTIONS
6.1.8. Java Package Recommendations
Fedora Core 4 users are advised not to use the Java RPM provided by Sun. It contains Provides that conflict with names used in packages provided as part of Fedora Core 4. Because of this, Sun Java might disappear from an installed system during package upgrade operations. Fedora Core 4 users should use either the RPM from jpackage.org or manually install the Sun Java tarball into /opt. Sun Java 1.5+ is recommended for stability purposes.
Table of contents [showhide]
1 Install fedora-rpmdevtools from Extras
2 Build rpmbuild tree
3 Install jpackage.repo from JPackage
4 Download jdk-1_5_0_05-linux-i586.bin from Sun
5 Copy jdk-1_5_0_05-linux-i586.bin to SOURCES
6 Download java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm from JPackage
7 Build java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm
8 Invalid rpath ???
9 Install java packages
10 Unsigned package ???
11 Check java version
12 Firefox plugin
13 Switching between java implementations
[edit]
Install fedora-rpmdevtools from Extras
[localhost ~]$ sudo yum install fedora-rpmdevtools
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:01
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for fedora-rpmdevtools to pack into transaction set.
fedora-rpmdevtools-1.1-1. 100% |=========================| 20 kB 00:00
---> Package fedora-rpmdevtools.noarch 0:1.1-1.fc4 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
fedora-rpmdevtools noarch 1.1-1.fc4 extras 59 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 59 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): fedora-rpmdevtools 100% |=========================| 59 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: fedora-rpmdevtools ######################### [1/1]
Installed: fedora-rpmdevtools.noarch 0:1.1-1.fc4
Complete!
[localhost ~]$
[edit]
Build rpmbuild tree
[localhost ~]$ fedora-buildrpmtree
[localhost ~]$ ls
Desktop download rpmbuild
[localhost ~]
[edit]
Install jpackage.repo from JPackage
[localhost ~]$ cd /etc/yum.repos.d/
[localhost yum.repos.d]$ sudo wget
http://www.jpackage.org/jpackage.repo
--11:38:19--
http://www.jpackage.org/jpackage.repo
=> `jpackage.repo'
Resolving
www.jpackage.org... 212.85.153.228
Connecting to
www.jpackage.org[212.85.153.228]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 629 [text/plain]
100%[======================================================>] 629 --.--K/s
11:38:20 (1.30 MB/s) - `jpackage.repo' saved [629/629]
[localhost yum.repos.d]$
[edit]
Download jdk-1_5_0_05-linux-i586.bin from Sun
1) Go to
http://java.sun.com/j2se/1.5.0/download.jsp
2) Click on Download JDK 5.0 Update 5
3) Click on Accept License Agreement
4) Download jdk-1_5_0_05-linux-i586.bin by clicking on "Linux self-extracting file"
[edit]
Copy jdk-1_5_0_05-linux-i586.bin to SOURCES
You might have a different download directory for your browser.
[localhost ~]$ cd download/
[localhost download]$ ls
jdk-1_5_0_05-linux-i586.bin
[localhost download]$ cp jdk-1_5_0_05-linux-i586.bin ~/rpmbuild/SOURCES/
[localhost download]$
[edit]
Download java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm from JPackage
[localhost ~]$ cd download
[localhost download]$ wget
http://mirrors.dotsrc.org/jpackage/1....0.05-1jpp.nos
--11:24:23--
http://mirrors.dotsrc.org/jpackage/1...1jpp.nosrc.rpm
=> `java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm'
Resolving mirrors.dotsrc.org... 130.225.247.87
Connecting to mirrors.dotsrc.org[130.225.247.87]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15,807 [application/x-redhat-package-manager]
100%[==================================================================================>] 15,807 11.42K/s
11:24:25 (11.41 KB/s) - `java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm' saved [15,807/15,807]
[localhost download]$
[edit]
Build java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm
[localhost download]$ rpmbuild --rebuild java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm
Installing java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID c431416d
warning: user jacorley does not exist - using root
warning: group ncsu does not exist - using root
warning: user jacorley does not exist - using root
warning: group ncsu does not exist - using root
warning: user jacorley does not exist - using root
warning: group ncsu does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.18245
+ umask 022
+ cd /home/phowarth/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /home/phowarth/rpmbuild/BUILD/jdk1.5.0_05
+ export MORE=10000
+ MORE=10000
+ sh /home/phowarth/rpmbuild/SOURCES/jdk-1_5_0_05-linux-i586.bin
...
omitted
...
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-devel-1.5.0.05-1jpp.i586.rpm
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-src-1.5.0.05-1jpp.i586.rpm
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-demo-1.5.0.05-1jpp.i586.rpm
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-plugin-1.5.0.05-1jpp.i586.rpm
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-fonts-1.5.0.05-1jpp.i586.rpm
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-alsa-1.5.0.05-1jpp.i586.rpm
Wrote: /home/phowarth/rpmbuild/RPMS/i586/java-1.5.0-sun-jdbc-1.5.0.05-1jpp.i586.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.26052
+ umask 022
+ cd /home/phowarth/rpmbuild/BUILD
+ cd jdk1.5.0_05
+ rm -rf /var/tmp/java-1.5.0-sun-1.5.0.05-1jpp-buildroot
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.26052
+ umask 022
+ cd /home/phowarth/rpmbuild/BUILD
+ rm -rf jdk1.5.0_05
+ exit 0
[localhost download]$
[edit]
Invalid rpath ???
If you get the following error:
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker.so' contains an invalid rpath
'$ORIGIN/../../../../lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker.so' contains an invalid rpath
'$ORIGIN/../../../../jre/lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker_g.so' contains an invalid rpath
'$ORIGIN/../../../../lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/heapTracker/lib/libheapTracker_g.so' contains an invalid rpath
'$ORIGIN/../../../../jre/lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace.so' contains an invalid rpath
'$ORIGIN/../../../../lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace.so' contains an invalid rpath
'$ORIGIN/../../../../jre/lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace_g.so' contains an invalid rpath
'$ORIGIN/../../../../lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
ERROR: file '/usr/share/java-1.5.0-sun/demo/jvmti/mtrace/lib/libmtrace_g.so' contains an invalid rpath
'$ORIGIN/../../../../jre/lib/i386' in [$ORIGIN/../../../../lib/i386:$ORIGIN/../../../../jre/lib/i386]
error: Bad exit status from /var/tmp/rpm-tmp.68469 (%install)
Try it again after commenting out the line with "check-rpaths" in your ~/.rpmmacros
%_topdir %(echo $HOME)/rpmbuild
%_smp_mflags -j3
#%__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
[edit]
Install java packages
[localhost ~]$ cd ~/rpmbuild/RPMS/i586/
[localhost i586]$ ls -1
java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm
java-1.5.0-sun-alsa-1.5.0.05-1jpp.i586.rpm
java-1.5.0-sun-demo-1.5.0.05-1jpp.i586.rpm
java-1.5.0-sun-devel-1.5.0.05-1jpp.i586.rpm
java-1.5.0-sun-fonts-1.5.0.05-1jpp.i586.rpm
java-1.5.0-sun-jdbc-1.5.0.05-1jpp.i586.rpm
java-1.5.0-sun-plugin-1.5.0.05-1jpp.i586.rpm
java-1.5.0-sun-src-1.5.0.05-1jpp.i586.rpm
[localhost i586]$ sudo yum localinstall *.rpm
Setting up Local Package Process
Examining java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun - 1.5.0.05-1jpp.i586
Examining java-1.5.0-sun-alsa-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun-alsa - 1.5.0.05-1jpp.i586
Examining java-1.5.0-sun-demo-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun-demo - 1.5.0.05-1jpp.i586
Examining java-1.5.0-sun-devel-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun-devel - 1.5.0.05-1jpp.i586
Examining java-1.5.0-sun-fonts-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun-fonts - 1.5.0.05-1jpp.i586
Examining java-1.5.0-sun-jdbc-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun-jdbc - 1.5.0.05-1jpp.i586
Examining java-1.5.0-sun-plugin-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun-plugin - 1.5.0.05-1jpp.i586
Examining java-1.5.0-sun-src-1.5.0.05-1jpp.i586.rpm: java-1.5.0-sun-src - 1.5.0.05-1jpp.i586
Marking java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm to be installed
Marking java-1.5.0-sun-alsa-1.5.0.05-1jpp.i586.rpm to be installed
Marking java-1.5.0-sun-demo-1.5.0.05-1jpp.i586.rpm to be installed
Marking java-1.5.0-sun-devel-1.5.0.05-1jpp.i586.rpm to be installed
Marking java-1.5.0-sun-fonts-1.5.0.05-1jpp.i586.rpm to be installed
Marking java-1.5.0-sun-jdbc-1.5.0.05-1jpp.i586.rpm to be installed
Marking java-1.5.0-sun-plugin-1.5.0.05-1jpp.i586.rpm to be installed
Marking java-1.5.0-sun-src-1.5.0.05-1jpp.i586.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package java-1.5.0-sun-src.i586 0:1.5.0.05-1jpp set to be updated
---> Package java-1.5.0-sun-alsa.i586 0:1.5.0.05-1jpp set to be updated
---> Package java-1.5.0-sun-devel.i586 0:1.5.0.05-1jpp set to be updated
---> Package java-1.5.0-sun-plugin.i586 0:1.5.0.05-1jpp set to be updated
---> Package java-1.5.0-sun-fonts.i586 0:1.5.0.05-1jpp set to be updated
---> Package java-1.5.0-sun-jdbc.i586 0:1.5.0.05-1jpp set to be updated
---> Package java-1.5.0-sun.i586 0:1.5.0.05-1jpp set to be updated
---> Package java-1.5.0-sun-demo.i586 0:1.5.0.05-1jpp set to be updated
--> Running transaction check
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates-released 100% |=========================| 951 B 00:00
base 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Finished
--> Processing Dependency: /usr/lib/libodbcinst.so for package: java-1.5.0-sun-jdbc
Importing Additional filelist information for dependency resolution
filelists.xml.gz 100% |=========================| 2.3 MB 00:00
extras : ################################################## 2324/2324
Added 671 new packages, deleted 3 old in 13.91 seconds
filelists.xml.gz 100% |=========================| 2.9 MB 00:00
updates-re: ################################################## 966/966
Added 484 new packages, deleted 486 old in 32.98 seconds
--> Processing Dependency: /usr/lib/libodbc.so for package: java-1.5.0-sun-jdbc
Importing Additional filelist information for dependency resolution
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package unixODBC.i386 0:2.2.11-3.FC4.1 set to be updated
---> Package unixODBC-devel.i386 0:2.2.11-3.FC4.1 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
java-1.5.0-sun i586 1.5.0.05-1jpp java-1.5.0-sun-1.5.0.05-1jpp.i586.rpm 84 M
java-1.5.0-sun-alsa i586 1.5.0.05-1jpp java-1.5.0-sun-alsa-1.5.0.05-1jpp.i586.rpm 64 k
java-1.5.0-sun-demo i586 1.5.0.05-1jpp java-1.5.0-sun-demo-1.5.0.05-1jpp.i586.rpm 14 M
java-1.5.0-sun-devel i586 1.5.0.05-1jpp java-1.5.0-sun-devel-1.5.0.05-1jpp.i586.rpm 12 M
java-1.5.0-sun-fonts i586 1.5.0.05-1jpp java-1.5.0-sun-fonts-1.5.0.05-1jpp.i586.rpm 2.0 M
java-1.5.0-sun-jdbc i586 1.5.0.05-1jpp java-1.5.0-sun-jdbc-1.5.0.05-1jpp.i586.rpm 66 k
java-1.5.0-sun-plugin i586 1.5.0.05-1jpp java-1.5.0-sun-plugin-1.5.0.05-1jpp.i586.rpm 1.9 M
java-1.5.0-sun-src i586 1.5.0.05-1jpp java-1.5.0-sun-src-1.5.0.05-1jpp.i586.rpm 17 M
Installing for dependencies:
unixODBC i386 2.2.11-3.FC4.1 updates-released 859 k
unixODBC-devel i386 2.2.11-3.FC4.1 updates-released 811 k
Transaction Summary
=============================================================================
Install 10 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 132 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): unixODBC-2.2.11-3. 100% |=========================| 859 kB 00:00
(2/2): unixODBC-devel-2.2 100% |=========================| 811 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: java-1.5.0-sun ####################### [ 1/10]
Installing: unixODBC ####################### [ 2/10]
Installing: unixODBC-devel ####################### [ 3/10]
Installing: java-1.5.0-sun-src ####################### [ 4/10]
Installing: java-1.5.0-sun-alsa ####################### [ 5/10]
Installing: java-1.5.0-sun-devel ####################### [ 6/10]
Installing: java-1.5.0-sun-plugin ####################### [ 7/10]
Installing: java-1.5.0-sun-fonts ####################### [ 8/10]
Installing: java-1.5.0-sun-jdbc ####################### [ 9/10]
Installing: java-1.5.0-sun-demo ####################### [10/10]
Installed: java-1.5.0-sun.i586 0:1.5.0.05-1jpp java-1.5.0-sun-alsa.i586 0:1.5.0.05-1jpp java-1.5.0-sun-demo.i586 0:1.5.0.05-1jpp java-1.5.0-sun-devel.i586 0:1.5.0.05-1jpp java-1.5.0-sun-fonts.i586 0:1.5.0.05-1jpp java-1.5.0-sun-jdbc.i586 0:1.5.0.05-1jpp java-1.5.0-sun-plugin.i586 0:1.5.0.05-1jpp java-1.5.0-sun-src.i586 0:1.5.0.05-1jpp
Dependency Installed: unixODBC.i386 0:2.2.11-3.FC4.1 unixODBC-devel.i386 0:2.2.11-3.FC4.1
Complete!
[localhost i586]$
[edit]
Unsigned package ???
If you get something similar to Package java-1.5.0-sun-src-1.5.0.05-1jpp.i586.rpm is not signed and none of the Java packages are installing using yum, try commenting out the line with gpgcheck temporarily in /etc/yum.conf
This is normal since these packages were built locally and they were not signed by JPackage build system.
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
#gpgcheck=1
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
Don't forget to uncomment the gpgcheck line again after installing the packages.
[edit]
Check java version
[localhost i586]$ java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
[localhost i586]$
[edit]
Firefox plugin
If you've installed java-1.5.0-sun-plugin and you want to use it with firefox, you'll need to set up the link manually as there is a small bug in the java-1.5.0-sun-plugin package that causes it not to set up the link properly for the FC4 firefox package.
[localhost i586]$ cd /usr/lib/firefox-1.0.7/plugins
[localhost plugins]$ sudo ln -s /usr/lib/jvm/java-1.5.0-sun-1.5.0.05/jre/plugin/i386/ns7/libjavaplugin_oji.so .
Alternatively, you could just put the link in /usr/lib/mozilla/plugins, which should work for both mozilla and firefox, and should keep working if the browsers are updated.
[localhost i586]$ cd /usr/lib/mozilla/plugins
[localhost plugins]$ sudo rm -f libjavaplugin_oji.so
[localhost plugins]$ sudo ln -s /usr/lib/jvm/java-1.5.0-sun-1.5.0.05/jre/plugin/i386/ns7/libjavaplugin_oji.so .
Removing any existing libjavaplugin_oji.so link should only be necessary if you've previously installed a different version of java.
[edit]
Switching between java implementations
The JPackage java RPMs support switching between java implementations using the "alternatives" system.
[localhost ~]$ sudo /usr/sbin/alternatives --config java
There are 3 programs which provide 'java'.
Selection Command
-----------------------------------------------
1 /usr/share/java/libgcj-java-placeholder.sh
2 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*+ 3 /usr/lib/jvm/jre-1.5.0-sun/bin/java
Enter to keep the current selection[+], or type selection number: 2
[localhost ~]$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)
Copyright (C) 2005 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.
[localhost ~]$ sudo /usr/sbin/alternatives --auto java
[localhost ~]$ java -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)