[squid-users] redirect_program in Java II

From: Konrad Krzysztof Krasiński <konrad120@dont-contact.us>
Date: Thu, 19 Jun 2003 18:46:24 +0200

Hello, again

I would like to thank Henrik Nordstrom for fast reply on my first post
that problem was solved (bad permissions) so I was very hapy, but not for
long

In my cache.log file in place of old error message now always I see:
    2003/06/19 18:09:05| helperOpenServers: Starting 1 'java' processes
    Error: could not find libjava.so
    Error: could not find Java 2 Runtime Environment.
    2003/06/19 18:09:05| Unlinkd pipe opened on FD 11

I tested my Java program manualy, it worked quite well.
    [root@o5 squid]# su - squid
    java on # this is msg from my /etc/profile
    -bash-2.05b$ /usr/java/jre/bin/java -cp /redirj/ Application1
    1
    http://o5.pl
    2
    http://o5.pl
    3
    http://o5.pl

I have set all my Java paths in /etc/profile
    JAVA_HOME="/usr/java/jre"
    export JAVA_HOME
    JAVAHOME="/usr/java/jre"
    export JAVAHOME

LD_LIBRARY_PATH="/usr/java/jre/lib:/usr/java/jre/lib/i386:$LD_LIBRARY_PATH"
    export LD_LIBRARY_PATH
    PATH="/usr/java/jre/bin:$PATH"
    export PATH
    echo "java on"

I have my Java in /usr/java directory:
    drwxrwxrwx 8 root root 4096 sty 12 16:49 j2sdk1.4.0_03
    lrwxrwxrwx 1 root root 27 cze 19 17:30 jre ->
/usr/java/j2sdk1.4.0_03/jre
    lrwxrwxrwx 1 root root 23 cze 19 17:25 sdk ->
/usr/java/j2sdk1.4.0_03

    all dirs and files are chmod 777, to eleminate basic (typing) misteaks I
created 2 links (jre and sdk)
    my system is RedHat 9.0 (all rpms from that distr, except java form
sun.com)

I realy dont know why this error stops my from using my beautiful
redirector.
To prevent mailist users from big atachments I created a site witch
contains:
    cache.log - cache.log deb.lev1
    9.zip - cache.log deb.lev9
    squid.conf
    redirj dir with my Application1.java
Everything is at http://o5.pl/squid_problem

I found on web some similar question, but there was no solution for ;(
http://groups.google.pl/groups?hl=pl&lr=&ie=UTF-8&oe=UTF-8&threadm=b8eblv%2420q5%241%40FreeBSD.csie.NCTU.edu.tw&rnum=1&prev=/groups%3Fq%3Dlibjava.so%2Bsquid%26hl%3Dpl%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3Db8eblv%252420q5%25241%2540FreeBSD.csie.NCTU.edu.tw%26rnum%3D1

I will by grateful for all ideas.

Konrad.
Sorry for my english ;)
Received on Thu Jun 19 2003 - 10:46:33 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:27 MST