Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: duncan on February 05, 2007, 06:49:52 AM

Title: jlibrary - A howto.
Post by: duncan on February 05, 2007, 06:49:52 AM
Download the JDK 5.0 bin file from here (https://sdlc6e.sun.com/ECom/EComActionServlet;jsessionid=1ADE932D8583CFC00DCA8FBBF677583D). You want the version titled "Linux RPM in self-extracting file". You will need to accept the License Agreement towards the top of the page.

Install as follows. In this case we are using jdk-1_5_0_06-linux-i586-rpm.bin.

Code: [Select]
# sh jdk-1_5_0_06-linux-i586-rpm.bin

and scroll thru until you get to the "Do you agree to the above license terms? [yes or no]" and answer yes. After a little time the installation will complete.

We need to add the JDK directory to our path so we do as follows (remember - adjust your paths as required).

Code: [Select]
# ln -s /usr/java/jdk1.5.0_06 /usr/java/jdk
# pico /etc/profile.d/java_env.sh


and paste in the following.

Code: [Select]
# java environment

export JAVA_HOME="/usr/java/jdk"
export PATH=$PATH:$JAVA_HOME/bin


Do a Control-x and save.

Adjust the permissions of the file like so.

Code: [Select]
chmod 0755 /etc/profile.d/java_env.sh

Do a quick reboot to setup the correct PATH.

Download the latest jlibrary server package from here (http://sourceforge.net/project/showfiles.php?group_id=95837). I would suggest that you extract the file in /opt but it`s entirely up to you.

In this case we are using version jlibrary-server-1.0.3. Adjust your paths as required. Extract like so.

Code: [Select]
# tar -xzvf jlibrary-server-1.0.3.tar.gz

and run the startup file.

Code: [Select]
/opt/jlibrary-server/bin/startup.sh

You should be able to browse the documentation page at

http://ipaddress:8080/jlibrary/index.html


And thats all for the time being  :)
Title: jlibrary - A howto.
Post by: Franco on February 05, 2007, 07:08:19 PM
What exactly am I looking to download from sun?
I get:
Code: [Select]
This Catalog lists only the for sale products on the Download Center. For a complete listing of the free products available, please see the Download Center home page.
When trying your link

Thanks,
Title: jlibrary - A howto.
Post by: duncan on February 05, 2007, 10:28:09 PM
Try - http://java.sun.com/javase/downloads/index_jdk5.jsp

And select the JDK 5.0 Update 11 option (3rd option down)
Title: jlibrary - A howto.
Post by: Franco on February 05, 2007, 10:46:22 PM
I did get to that one before, I wasn't sure because of the different version  :D

Thanks,
Title: jlibrary - A howto.
Post by: Franco on February 06, 2007, 09:22:59 PM
I'm using dansguardian on port 8080, anyone know how to do this?:
Quote
From jlibrary site: To do this, you only have to configure the internal Tomcat server. Refer to the tomcat documentation to find more information about how to do this


Thanks,
Title: jlibrary - A howto.
Post by: duncan on February 06, 2007, 10:47:13 PM
Try http://www.moreservlets.com/Using-Tomcat-4.html#Change-Port for an example.