WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: java-installer does not work  (Read 3175 times)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
java-installer does not work
« on: November 24, 2015, 07:55:25 AM »
I tried to install java but the installer failed:

Code: [Select]
========================================================================

Java installer for Tiny Core Linux
by Sercan Arslan <arslanserc@gmail.com>

========================================================================

Before proceeding You must download jdk-8u65-linux-i586.tar.gz
from http://www.oracle.com/technetwork/java/javase/downloads/index.html
to /home/tc

When i went to the Oracle site i did not find "jdk-8u65-linux-i586.tar.gz" but only "*.sh" ; a "*.tar.gz" file existed only for the jre kind (?)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: java-installer does not work
« Reply #1 on: November 24, 2015, 09:11:40 AM »
jdk-8u65-linux-i586.tar.gz is available at that link. O.o
Jou just need to click on the download banner..

Directly below "Java SE Downloads" click on the download banner with the description "Java Platform (JDK) 8u65 / 8u66".
This leads you to "Java SE Development Kit 8 Downloads". This is what you want.
Download a copy and keep it handy: Core book ;)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: java-installer does not work
« Reply #2 on: November 24, 2015, 10:42:54 AM »
 :-[  :-[ Thanks :)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: java-installer does not work
« Reply #3 on: November 24, 2015, 11:55:04 AM »
The file is downloaded and right in place but the installer still laments in the same way as before  :-\ ::)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: java-installer does not work
« Reply #4 on: November 24, 2015, 12:14:37 PM »
The script is not complaining but informing you. Just hit enter and it should continue.
Admittedly, not the most intuitive info message.
Download a copy and keep it handy: Core book ;)

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: java-installer does not work
« Reply #5 on: November 25, 2015, 05:58:54 PM »
Yes. But unfortunately the installation fails. And corrupts memory in a way the only way is to kill X to be able to reboot

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: java-installer does not work
« Reply #6 on: November 26, 2015, 04:45:47 AM »
That sounds like you don't have enough memory to install Java.
The only barriers that can stop you are the ones you create yourself.

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: java-installer does not work
« Reply #7 on: November 26, 2015, 05:41:32 AM »
That sounds like you don't have enough memory to install Java.

Yes, seems so. Might that be an effect of zram? I remember, to have the GetLatestFirefox script to work, i had to turn off the zram feature (nozswap in the bootcodes). Should i try that?

More generally, is it reasonable to have the zram feature turned on or better turned off? My netbook has 1 gig of ram ... (And i have this problem even in other circumstances, sometimes, so if you think this machine might work smoother without, i'd follow your advice :D ).

Thanks in advance!

Offline emninger

  • Sr. Member
  • ****
  • Posts: 267
Re: java-installer does not work
« Reply #8 on: November 26, 2015, 10:51:03 AM »
I changed the following:
- added nozswap to the bootline
- added swapfile=sda1 (after i created a file /mnt/sda1/tc.swp - had to do it by hand, the control panel didn't do it)

Now, the java-installer went a bit further. It still failed, but i didn't get anymore a compromised ram. So i could look into /tmp/java-installer.log:

Code: [Select]
sed: /usr/local/share/applications/sun-javaws.desktop: No such file or directory
cp: error writing '/usr/local/src/java/jdk8/usr/local/java/./jre/lib/i386/libprism_common.so': Auf dem Gerät ist kein Speicherplatz mehr verfügbar

(There are still many other rows like the second, referring to other files but with the same error msg: No space available on the device).

Now, that's what i do not understand:

free -m says:
Code: [Select]
tc@box:~$ free -m
             total       used       free     shared    buffers     cached
Mem:           999        892        106          0          7        457
-/+ buffers/cache:        427        572
Swap:         1023        650        373
tc@box:~$

And on sda1 there are used 3,6 GB while still 12 GB are available (so says xfe). With conky i could follow how the swapfile got populated during the installation attempt (but it was never more than 60%).