Jpackage on FC3
The Jpackage project has RPMs for lots of Free Java packages and also SRPMs that you can build against various non-Free packages like Java from Sun.
This page documents how to install only Free software packages, see the Jpackage with Sun Java on FC3 page for information about using Java from Sun.
This page explains how to install the packages required to build and deploy MKSearch on Fedora Core 3 using Apache Ant, Tomcat 5.x and JUnit regression tests. This configuration is documented because it is the primary configuration used in the development of the system. It is possible to build the project without Ant or JUnit and deploy to other servlet containers, see $mk_home/bin/README.txt
for further details.
Lines in the examples that start with a $
prompt are things you can do as a normal user, lines that start with a #
are things that have to be done by root. To revert to your normal user account, enter su user
with your own user name. When copying these instructions, you do not need to copy the $
or the #
!
Configuring Yum
The first thing to do is either configure Yum (which comes with FC3) to get the Free Jpackage packages or configure Apt (which comes from other repos such as Freshrpms) - you don't need to configure both. If you are not sure which to use then Yum is probably best. The Jpackage site has Apt and Yum configuration instructions, or you can follow the short Yum instructions that have been taken from there.
GPG
To ensure that the packages you install are not corrupted you first need to install the Jpackage GPG key. You can download the key as a normal user but you need to install it as root:
$ cd /tmp/
$ wget http://jpackage.org/jpackage.asc
$ su
# rpm --import jpackage.asc
Yum
It is simply a matter of downloading the jpackage.repo list and installing it as root. The repo list is a configuration file that has pointers to authorised mirror sites for JPackage.
$ cd /tmp/
$ wget http://jpackage.org/jpackage.repo
$ su
# mv jpackage.repo /etc/yum.repos.d/
You can then run yum update
to update the list of available packages.
Installing Packages
The first thing to do is to install the java compat packages.
# yum install gcc-java compat-gcc-java \
java-1.4.2-gcj-compat java-1.4.2-gcj-compat-devel
Dependencies Resolved
Transaction Listing:
Install: compat-gcc-java.i386 0:8-3.3.4.2
Install: java-1.4.2-gcj-compat.noarch 0:1.4.2.0-11jpp
Install: java-1.4.2-gcj-compat-devel.noarch 0:1.4.2.0-11jpp
Performing the following to resolve dependencies:
Install: compat-libgcj.i386 0:8-3.3.4.2
Install: compat-libgcj-devel.i386 0:8-3.3.4.2
Install: ecj.i386 0:2.1.3-5
Install: katana.noarch 0:2.0.0-1
Is this ok [y/N]: y
The three key packages that are required for this deployment are named tomcat5
, ant
and junit
, so start by trying to install these.
# yum install tomcat5 ant junit
Error: missing dep: jta >= 0:1.0.1-0.a.1 for pkg tomcat5
Error: missing dep: j2sdk = 2000:1.4.2_06-fcs for pkg java-1.4.2-sun-compat
So, non-Free packages are required and you need to follow the instructions on the Jpackage with Sun Java on FC3 page.
Copyright MKDoc Ltd. and others.
The Free Documentation License http://www.gnu.org/copyleft/fdl.html