The situation regarding Java is changing fast. Sun has opened sourced Java, but not all of it, nor all versions of it (Sun's Java 1.5.0 is still proprietary and not open source). Some Linux distributions now have a version of Sun's java that will run BibleDesktop. Please note that the gcj version of Java is not able to run BibleDesktop as it does not implement all of Java 1.5.0. Even this is anticipated to change.
If your distribution does not provide Java then get Sun's Java. If you are just running BibleDesktop, then get the most recent release. If you are going to help develop BibleDesktop or JSword, we target Java 1.5.0. If you are careful not to use features added after 1.5.0 you can use a more recent version. Once you obtain Sun's Java you need to install it. However, Sun's Java RPM does not install correctly. To install it correctly you will need to use JPackage's Java Package.
The following steps will allow you to install Sun's Java correctly. Below is how to install Java 1.5.
su -c "yum install rpm-build"
rpm |-- BUILD |-- RPMS | |-- i386 | |-- i586 | `-- noarch |-- SOURCES |-- SPECS |-- SRPMS `-- tmpYou can do this with the following commands:
mkdir ~/rpm
mkdir ~/rpm/BUILD
mkdir ~/rpm/RPMS
mkdir ~/rpm/RPMS/i386
mkdir ~/rpm/RPMS/i586
mkdir ~/rpm/RPMS/noarch
mkdir ~/rpm/SOURCES
mkdir ~/rpm/SPECS
mkdir ~/rpm/SRPMS
mkdir ~/rpm/tmp
%_topdir %(echo ${HOME}/rpm) %_tmppath %{_topdir}/tmp # Change the following to work for you %packager Firstname Lastname <your.address@here> # Uncomment to have built RPMs land inRPMS/
instead ofRPMS/<arch>/ #%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm.
java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm.
jdk-1_5_0_05-linux-i586.bin
If this is the most recent version of Sun's Java then you can get it from:
http://java.sun.com/j2se/1.5.0/download.jsp
otherwise, you will need to get it from Sun's Java Product Archive:
http://java.sun.com/products/archive
Save this file to your ~/rpm/SOURCES.
rpmbuild --rebuild java-1.5.0-sun-1.5.0.05-1jpp.nosrc.rpm
There will be lots of output!
cd ~/rpm/RPMS/i586
su -c "yum localinstall --nogpgcheck java*.rpm"
su -c "ln -s /etc/alternatives/javaws /usr/bin/javaws"