Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: netnomad on March 24, 2012, 12:50:06 PM

Title: java-jre - is there a working java-environment in 4.4?
Post by: netnomad on March 24, 2012, 12:50:06 PM
hi friends,

i seldom use java, but i tested it in microcore from 3.0 until 3.6 with openoffice and minefield and it worked well.
now with core 4.4 i use libreoffice3.5.scm, icecat and minefield9, and the sun-jre.tcz doesn't seem to work anymore.
it's the same with sun-jre7.tcz, openjdk-7-jre.tcz, openjdk-6-jre.tcz.
in libreoffice3.5, under the menue options, no ondemand installed java-jre is shown,
in the browsers the typical java testpages don't show a working java-environment.

actually i don't need java on a daily base, but i'm just curious whether the java-packages of the repository are still working and perhaps which packages you successfully use with which configurations!?

thank you for your replies and hints.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: vinnie on March 24, 2012, 04:37:37 PM
i actually use sun-jre (version 6) on 4.2 tinycore and it works.
I did not know that there was a version 7 of the same.
I think I'll have to do many tests as I get access to a faster connection.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: robc on March 24, 2012, 11:15:37 PM
no ondemand installed java-jre is shown
Does this mean you are using java ondemand?  If it is ondemand it won't work until you logout and relogin.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: AbNoRMiS on March 24, 2012, 11:29:47 PM
the sun-jre info says:
Quote
You need to relogin or reboot to have java in PATH.
but i think not necessary relogin or reboot
need add the environment variable JAVA_HOME=/usr/local/java-sun/jre
so sun-jre7 will work and for example in the opera-11 on about:plugins can see
Quote
Java(TM) Plug-in 1.7.0
Description: The next generation Java plug-in for Mozilla browsers.
/usr/local/lib/mozilla/plugins/libnpjp2.so

p.s.
export JAVA_HOME=/usr/local/java-sun/jre
export PATH=$PATH:$JAVA_HOME
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: netnomad on March 24, 2012, 11:31:20 PM
hi robc,

i can confirm your hint: after installing sun-jre.tcz (version6), logout and relogin,  i can load java in libreoffice3.5.
but nevertheless minefield9 isn't able to load or play java-applets...
... could you imagine reasons for this malfunction?
about:plugins shows no loaded plugins.

thank you for your contribution.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: vinnie on March 24, 2012, 11:35:59 PM
I use java on boot and seamonkey, applet work
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: netnomad on March 24, 2012, 11:51:50 PM
hi vinnie,

seamonkey is able to run java-applets without any reboot, just relogin is enough.
probably minefield9 has problems at least with java6.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: AbNoRMiS on March 25, 2012, 02:11:09 AM
i want gladden you that no problems with minefield9 :)
but perhaps you have flash11 also installed as ondemand
run ondemand-sun-jre7 and ondemand-flash11
then sun-jre7 will work even without relogin or reboot
oddly enough but it works! :D

(http://forum.tinycorelinux.net/index.php?action=dlattach;topic=12887.0;attach=3340)
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: netnomad on March 25, 2012, 04:59:28 AM
hi AbNoRMiS,

yeah, i can confirm, i didn't expect that a java-applet needs flash.
all mentioned features work with minefield9, too.

thank you for your confirmation.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: curaga on March 25, 2012, 05:04:24 AM
Java doesn't need flash, more likely it's a missing dep or something done by the flash startup script.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: netnomad on March 25, 2012, 05:53:57 AM
yeah, you are right, that makes sense.
thanks for your contribution curaga.
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: AbNoRMiS on March 25, 2012, 06:40:49 AM
dear curaga, you're absolutely right, flash not required :)
in the sun-jre7 startup script lacks code which exists in flash11 startup script

if add this two code lines to ondemand script tce/ondemand/sun-jre7
Quote
cat >> `readlink /etc/sysconfig/tcedir`/ondemand/sun-jre7 <<EOF
## Support mozillas that do not have /usr/local/lib/mozilla plugins specified as a plugin dir.
[ -d /usr/lib/mozilla ] || sudo mkdir -p /usr/lib/mozilla
[ -e /usr/lib/mozilla/plugins ] || sudo ln -s /usr/local/lib/mozilla/plugins /usr/lib/mozilla/plugins
EOF
then minefield9 can run without flash to preserve a bit memory
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: vinnie on March 25, 2012, 07:58:13 AM
we have to remember to arslan when he back.
indeed seen that there is still time we could do something to give him welcome home.
Perhaps a multimedia product?
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: AbNoRMiS on March 25, 2012, 09:01:04 AM
sorry vinnie, i don't understood
what you mean about arslan and multimedia product?
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: vinnie on March 25, 2012, 10:00:04 AM
A sort of gift for his return :P
maybe a comic strip in which he portrayed during his military work inventing some story or something like that
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: AbNoRMiS on March 25, 2012, 10:34:58 AM
maybe i need know arslan personally to achieve understanding about this but it not so :D
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: netnomad on March 25, 2012, 11:07:50 AM
hi AbNoRMiS,

arslan is now in his military service in turkey...
he is in charge for some very popular packages like virtualbox, minitube or java,
so we are looking forward to his return... so then some packages get a cheerful update ;-)
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: AbNoRMiS on March 25, 2012, 12:00:24 PM
oh, thank you, netnomad, finally i realized what the matter :)
now i understood why nobody can find virtualbox-3.0.21 :D
very good that at least jre has started normally work starting from tc4.4
because before that time it printed mass screen messages at booting
but anyway we'll wait eagerly for his return

(and also because that minitube very outdated  ;D)
Title: Re: java-jre - is there a working java-environment in 4.4?
Post by: Xianwen Chen on April 30, 2012, 10:28:20 AM
Hi. I can email you the Sun JRE I use for Core Linux 4.5.1 if you are interested.