I was hoping to spare others the pain that I have endured this weekend while trying my hardest to get the Jakarta/Tomcat server installed on my latest machine. You would think that having installed this port umteen times before this weekend would have been enough, but nooo... Well, I'll make this short. Here are the tricks necessary to install Tomcat on FreeBSD:
- go to /usr/ports/www/jakarta-tomcat41/ and run 'make install all clean'
This will take some time, so make yourself coffee, tea or whatever your pleasure...
- go to /usr/ports/www/jfc/ and run
- download the necessary files
- re-run
- run
- cd to /usr/ports/www/jdk12/ and run
- download the necessary files
- run
- cd to /usr/ports/www/jfc/ and run
- cd to /usr/ports/www/jdk12/ and run
- ohhh yeah... it really isn't simple!
A quick note, this is so complicated because the licensing for Java does not allow one to simply redistibute the different sources as one would wish (which I can understand and yet be irritated by), so each time yourmake installcrashes with error code 1, if you read carefully, it is usually because you need to manually download part of the sources required for building jakarta-tomcat
- if you are on a PII machine, you will be waiting some time... which is where I am currently at. I will continue as progress is made. The important thing to note is that attempting to install the jakarta-tomcat41 port directly has not worked, so each time I encountered error code 1, it meant going back to a dependancy of the java base and installing that first.
- if you are finally able to get /usr/ports/java/jdk12 installed, then the next step is as simple as cake: cd to /usr/ports/www/jakarta-tomcat41 and run
A final note:
I will sit down and do this whole routine again (on a faster machine, however) and write down the actual steps taken - which includes all of the different source files that were needed to make this work. I can tell you for sure, however, that I had to download the following four files from Sun and Javasoft's website (I never paid any attention to see how javasoft was funded):
bsd-jdk122-patches-11.tar.gz
jakarta-tomcat-4.1.18.tar.gz
jdk-1_2_2_013-linux-i586.tar.gz
jdk1_2_2-src.tar.gz (I don't entirely understand why I needed the linux and fbsd sources...)
swing1_1_1.zip
This last one is a pain - the port ends in error code 1 and asks for jfc1.1.1, when in fact the file it is looking for is swing1_1_1.zip but won't uncover unless you extract the files (using