WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: java-jre - is there a working java-environment in 4.4?  (Read 6710 times)

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
java-jre - is there a working java-environment in 4.4?
« on: March 24, 2012, 03: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.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: java-jre - is there a working java-environment in 4.4?
« Reply #1 on: March 24, 2012, 07: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.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: java-jre - is there a working java-environment in 4.4?
« Reply #2 on: March 25, 2012, 02:15:37 AM »
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.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: java-jre - is there a working java-environment in 4.4?
« Reply #3 on: March 25, 2012, 02:29:47 AM »
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
« Last Edit: March 25, 2012, 02:35:20 AM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: java-jre - is there a working java-environment in 4.4?
« Reply #4 on: March 25, 2012, 02:31:20 AM »
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.
« Last Edit: March 25, 2012, 02:36:31 AM by netnomad »

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: java-jre - is there a working java-environment in 4.4?
« Reply #5 on: March 25, 2012, 02:35:59 AM »
I use java on boot and seamonkey, applet work

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: java-jre - is there a working java-environment in 4.4?
« Reply #6 on: March 25, 2012, 02:51:50 AM »
hi vinnie,

seamonkey is able to run java-applets without any reboot, just relogin is enough.
probably minefield9 has problems at least with java6.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: java-jre - is there a working java-environment in 4.4?
« Reply #7 on: March 25, 2012, 05: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

« Last Edit: March 25, 2012, 05:51:12 AM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: java-jre - is there a working java-environment in 4.4?
« Reply #8 on: March 25, 2012, 07: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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: java-jre - is there a working java-environment in 4.4?
« Reply #9 on: March 25, 2012, 08:04:24 AM »
Java doesn't need flash, more likely it's a missing dep or something done by the flash startup script.
The only barriers that can stop you are the ones you create yourself.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: java-jre - is there a working java-environment in 4.4?
« Reply #10 on: March 25, 2012, 08:53:57 AM »
yeah, you are right, that makes sense.
thanks for your contribution curaga.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: java-jre - is there a working java-environment in 4.4?
« Reply #11 on: March 25, 2012, 09: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
« Last Edit: March 25, 2012, 10:17:42 AM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: java-jre - is there a working java-environment in 4.4?
« Reply #12 on: March 25, 2012, 10: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?

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: java-jre - is there a working java-environment in 4.4?
« Reply #13 on: March 25, 2012, 12:01:04 PM »
sorry vinnie, i don't understood
what you mean about arslan and multimedia product?
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: java-jre - is there a working java-environment in 4.4?
« Reply #14 on: March 25, 2012, 01:00:04 PM »
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