WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Warning boot message after installing jdk8.tcz  (Read 854 times)

Offline dqj_99

  • WikiUser
  • *
  • Posts: 7
Warning boot message after installing jdk8.tcz
« on: April 30, 2017, 07: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).

Quote
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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4249
Re: Warning boot message after installing jdk8.tcz
« Reply #1 on: April 30, 2017, 07:43:59 AM »
The double slashes are not a problem.  Do those directories exist?

Offline polikuo

  • Sr. Member
  • ****
  • Posts: 251
Re: Warning boot message after installing jdk8.tcz
« Reply #2 on: April 30, 2017, 08:26:24 AM »
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

Offline dqj_99

  • WikiUser
  • *
  • Posts: 7
Re: Warning boot message after installing jdk8.tcz
« Reply #3 on: April 30, 2017, 08:37:03 AM »
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.




Offline polikuo

  • Sr. Member
  • ****
  • Posts: 251
Re: Warning boot message after installing jdk8.tcz
« Reply #4 on: April 30, 2017, 09:04:22 AM »
/usr/local/tce.installed/jre8
Quote
#!/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
Quote
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
« Last Edit: April 30, 2017, 09:09:36 AM by polikuo »

Offline dqj_99

  • WikiUser
  • *
  • Posts: 7
Re: Warning boot message after installing jdk8.tcz
« Reply #5 on: April 30, 2017, 03:45:39 PM »
on my system CorePure64 V8.0

Quote
echo $JAVA_HOME

gives

Quote
/usr/local/java/

and

Quote
which java

gives

Quote
/usr/local/java/bin/java


« Last Edit: April 30, 2017, 03:50:26 PM by dqj_99 »