Tiny Core Linux
Tiny Core Base => Corepure64 => Topic started by: dqj_99 on April 30, 2017, 11:35:00 AM
-
I've successfully installed java-installer.tcz and have downloaded jdk8.tcz on TinyCorePure 64.
Java works but I've noticed that when booting I get this message (I've set the boot option 'pause'so that I can see the messages).
Can't stat tmp/tcloop/jre8//bin
(Note the double slash after jre8). Also get 2nd message except the directory is lib rather than bin.
Can anyone advise on how I should fix this issue?
Derek
-
The double slashes are not a problem. Do those directories exist?
-
Can't stat tmp/tcloop/jre8//bin
The double slashes are not a problem. Do those directories exist?
Where's the "root slash" ?
/tmp/tcloop/jre8//bin
-
No they don't
and the message does say
cp: can't stat '/tmp/tcloop/jre8//bin' :No such file or directory
After boot the directories
/tmp/tcloop/jre8
and
/tmp/tcloop/jdk8
both exist, and are populated but there is no bin directory
There is a /tmp/tcloop/jre8/usr/local/lib directory however but no bin directory.
I'm not sure how to test whether jre8 is behaving properly after boot. I think it must be since I can use java to run jar files.
-
/usr/local/tce.installed/jre8
#!/bin/sh
THIS=$(basename $0)
. /etc/profile.d/jre.sh
if [ -d "/tmp/tcloop/$THIS" ]; then
for dir in bin lib
do
cp -a "/tmp/tcloop/$THIS/$JAVA_HOME/$dir" "$JAVA_HOME"
done
fi
[ -d /etc/.java/.systemPrefs ] || mkdir -p /etc/.java/.systemPrefs
[ $(which gtk-update-icon-cache) ] && gtk-update-icon-cache -q -f -t /usr/local/share/icons/hicolor > /dev/null 2>&1
[ $(which update-desktop-database) ] && update-desktop-database -q > /dev/null 2>&1
[ $(which update-mime-database) ] && update-mime-database /usr/local/share/mime &> /dev/null
[ -e /lib64 ] || [ "$(uname -m)" != "x86_64" ] || ln -s /lib /lib64
/etc/profile.d/jre.sh
export PATH=$PATH:/usr/local/java/jre/bin
if [ ! -f /etc/profile.d/jdk.sh ]; then
export JAVA_HOME=/usr/local/java/jre
fi
I didn't see anything wrong.
Running TC 7.2, java-installer with jdk-8u131-linux-x64.tar.gz
-
on my system CorePure64 V8.0
echo $JAVA_HOME
gives
/usr/local/java/
and
which java
gives
/usr/local/java/bin/java