JREFixes

From Inveneo

Jump to: navigation, search

InveneoPuppyLinux | Customisation

Fixes for the Java DotPup: (Because DotPups burnt into remaster with PCCC only copies files, not scripts.)

(1) The symlink isn't present (which stops the Java plugin in Firefox): /usr/local/jre

ln -sf /usr/local/jre1.5.0_06 /mnt/home/puppy/puppy-unleashed/rootfs-complete/usr/local/jre
ln -sf /usr/local/jre/plugin/i386/ns7/libjavaplugin_oji.so /mnt/home/puppy/puppy-unleashed/rootfs-complete/usr/lib/firefox/plugins/libjavaplugin_oji.so

(2) The PATH isn't set in /etc/profile:

sed -e '/^LD_LIBRARY_PATH=/{' \
    -e 'a\' \
    -e '\' \
    -e 'if [ -e /usr/local/jre ];then\' \
    -e ' PATH="/usr/local/jre/bin:$PATH"\' \
    -e ' JAVA_PATH=/usr/local/jre\' \
    -e ' export JAVA_PATH\' \
    -e 'fi' \
    -e '}' /mnt/home/puppy/puppy-unleashed/rootfs-complete/etc/profile > /tmp/profile.java
mv /tmp/profile.java /mnt/home/puppy/puppy-unleashed/rootfs-complete/etc/profile
Personal tools