Tiny Core Linux
		Tiny Core Extensions => TCE Q&A Forum => Topic started by: emninger on November 24, 2015, 07:55:25 AM
		
			
			- 
				I tried to install java but the installer failed:
 
 ========================================================================
 
 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 (?)
- 
				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.
- 
				 :-[  :-[ Thanks :)
			
- 
				The file is downloaded and right in place but the installer still laments in the same way as before  :-\ ::)
			
- 
				The script is not complaining but informing you. Just hit enter and it should continue.
 Admittedly, not the most intuitive info message.
- 
				Yes. But unfortunately the installation fails. And corrupts memory in a way the only way is to kill X to be able to reboot
 
- 
				That sounds like you don't have enough memory to install Java.
			
- 
				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!
- 
				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:
 
 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:
 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%).