debian, firefox, java probleem

Pagina: 1
Acties:

  • decramy
  • Registratie: December 2001
  • Laatst online: 17-02 21:07

decramy

root@birdie:~#

Topicstarter
Ik heb net java proberen te instaleren.
Daarvoor heb ik j2re-1_4_2_05-linux-i586.bin gedraaid, omdat ik een Runtime Envirement (k*t woord) wil. Daarna de verkregen dir j2re1.4.2_05 naar /usr/local verplaatst.

Vervolgens heb ik gedaan:
code:
1
2
3
4
katrien:~# cd /usr/lib/mozilla-firefox/plugins/
katrien:/usr/lib/mozilla-firefox/plugins# ln -s /usr/local/j2re1.4.2_05/plugin/i386/ns4/libjavaplugin.so
katrien:/usr/lib/mozilla-firefox/plugins# ln -s /usr/local/j2re1.4.2_05/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
katrien:/usr/lib/mozilla-firefox/plugins#

vervolgens heb ik mozilla opgestart en ben ik naar een pagina met java content gesurft:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
decramy@katrien:~$ mozilla-firefox --verbose
selected locale: en-US
                      PLUGIN ERROR
                      ************
Java process caught exception: java.lang.InternalError: Can't find supported visual


java.lang.InternalError: Can't find supported visual
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at sun.plugin.AppletViewer.<clinit>(Unknown Source)
        at sun.plugin.JavaRunTime.initEnvironment(Unknown Source)
        at sun.plugin.navig.motif.Plugin.doit(Unknown Source)
        at sun.plugin.navig.motif.Plugin.start(Unknown Source)
Java process: caught exception from sun.plugin.navig.motif.Plugin.start
Exception in thread "main" java.lang.NoClassDefFoundError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at sun.plugin.viewer.LifeCycleManager.destroyCachedAppletPanels(Unknown Source)
        at sun.plugin.navig.motif.Plugin.onExit(Unknown Source)
        at sun.plugin.navig.motif.Plugin.doit(Unknown Source)
        at sun.plugin.navig.motif.Plugin.start(Unknown Source)
INTERNAL ERROR on Browser End: Could not read ack from child process
System error?:: Resource temporarily unavailable
decramy@katrien:~$

Weet iemand wat ik er aan kan doen?

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • Bananenplant
  • Registratie: Januari 2001
  • Nu online
installeer blackdown java (is wel op www.apt-get.org te vinden), een j2sdk1.3 of een j2sdk1.4. als dat gedaan is zoek je op je systeem naar een file die eindigt op oji.so (doe ik dan met locate (na een updateddb), het is bij mij /usr/lib/j2se/1.4/jre/plugin/i386/mozilla/javaplugin_oji.so). daarna:


code:
1
2
cd /usr/lib/mozilla-firefox/plugins/
ln -s /usr/lib/j2se/1.4/jre/plugin/i386/mozilla/javaplugin_oji.so


daarna zie je 'm na het herstarten van firefox staan bij about:plugins. let er wel op dat er niet al een dergelijke file staat (aan de naam kun je wel zien of het je java-plugin is), ik weet niet of firefox het fijn vindt als je twee java plugins tegelijk hebt namelijk ;) (en die file kun je dan gewoon wegkeilen)

het zal allicht ook zonder development kit kunnen, maar ik moet soms wat in java maken, dus ik heb het zo gedaan, je kunt van blackdown ook een losse runtime environment installeren.

wat ook een voordeel is hiervan tov zo'n .bin draaien is dat je alles netjes met dpkg doet :)

[ Voor 20% gewijzigd door Bananenplant op 07-08-2004 22:52 . Reden: duidelijker gemaakt ]

❤️‍🩹 Bezuinigen op armen en zieken 🤕 ? Welnee, Zucmantaks, nu 💰 !


  • decramy
  • Registratie: December 2001
  • Laatst online: 17-02 21:07

decramy

root@birdie:~#

Topicstarter
toch nog niet helemaal;

install:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
katrien:/usr/lib/mozilla-firefox/plugins# apt-get install j2sdk1.3
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  j2re1.3 j2se-common libc6 libc6-dev locales
Suggested packages:
  mozilla netscape j2sdk1.3-doc glibc-doc manpages-dev
The following packages will be REMOVED:
  java2-common
The following NEW packages will be installed:
  j2re1.3 j2sdk1.3 j2se-common locales
The following packages will be upgraded:
  libc6 libc6-dev
2 upgraded, 4 newly installed, 1 to remove and 466 not upgraded.
Need to get 27.3MB of archives.
After unpacking 52.7MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.nl.debian.org sid/main libc6-dev 2.3.2.ds1-15 [2529kB]
Get:2 http://ftp.nl.debian.org sid/main libc6 2.3.2.ds1-15 [4911kB]
Get:3 ftp://metalab.unc.edu woody/main j2se-common 1.1 [6344B]
Get:4 ftp://metalab.unc.edu woody/non-free j2re1.3 1.3.1.02b-2 [13.7MB]
Get:5 http://ftp.nl.debian.org sid/main locales 2.3.2.ds1-15 [3982kB]
Get:6 ftp://metalab.unc.edu woody/non-free j2sdk1.3 1.3.1.02b-2 [2118kB]
Fetched 27.3MB in 7m29s (60.7kB/s)
Preconfiguring packages ...
(Reading database ... 68290 files and directories currently installed.)
Removing java2-common ...
(Reading database ... 68273 files and directories currently installed.)
Preparing to replace libc6-dev 2.3.2.ds1-13 (using .../libc6-dev_2.3.2.ds1-15_i386.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace libc6 2.3.2.ds1-13 (using .../libc6_2.3.2.ds1-15_i386.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.3.2.ds1-15) ...
Current default timezone: 'Europe/Amsterdam'.
Local time is now:      Sat Aug  7 23:12:35 CEST 2004.
Universal Time is now:  Sat Aug  7 21:12:35 UTC 2004.
Run 'tzconfig' if you wish to change it.

Selecting previously deselected package locales.
(Reading database ... 68312 files and directories currently installed.)
Unpacking locales (from .../locales_2.3.2.ds1-15_all.deb) ...
Selecting previously deselected package j2se-common.
Unpacking j2se-common (from .../j2se-common_1.1_all.deb) ...
Selecting previously deselected package j2re1.3.
Unpacking j2re1.3 (from .../j2re1.3_1.3.1.02b-2_i386.deb) ...
Do you agree to the above license terms? [yes or no] yes
Selecting previously deselected package j2sdk1.3.
Unpacking j2sdk1.3 (from .../j2sdk1.3_1.3.1.02b-2_i386.deb) ...
Do you agree to the above license terms? [yes or no] yes
Setting up libc6-dev (2.3.2.ds1-15) ...
Setting up locales (2.3.2.ds1-15) ...
Generating locales...
  en_GB.ISO-8859-15... done
  en_IE.ISO-8859-15@euro... done
  en_US.ISO-8859-15... done
  nl_NL.ISO-8859-15@euro... done
Generation complete.

Setting up j2se-common (1.1) ...

Setting up j2re1.3 (1.3.1.02b-2) ...

Setting up j2sdk1.3 (1.3.1.02b-2) ...


de mozilla versie:
code:
1
2
3
4
5
6
katrien:/usr/lib/mozilla-firefox/plugins# ln -s /usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so
--------
decramy@katrien:~$ mozilla-firefox --verbose
selected locale: en-US
LoadPlugin: failed to initialize shared library /usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so [/usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so: undefined symbol: __vt_17nsGetServiceByCID]
LoadPlugin: failed to initialize shared library /usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so [/usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so: undefined symbol: __vt_17nsGetServiceByCID]
de netscape6 versie:
code:
1
2
3
4
5
6
katrien:/usr/lib/mozilla-firefox/plugins# ln -s /usr/lib/j2se/1.3/jre/plugin/i386/netscpe6/javaplugin_oji.so
--------
decramy@katrien:~$ mozilla-firefox --verbose
selected locale: en-US
LoadPlugin: failed to initialize shared library /usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so [/usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so: undefined symbol: __vt_17nsGetServiceByCID]
LoadPlugin: failed to initialize shared library /usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so [/usr/lib/j2se/1.3/jre/plugin/i386/mozilla/javaplugin_oji.so: undefined symbol: __vt_17nsGetServiceByCID]

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 08-02 19:59
waarom gebruik je ns610 en ns4 java plugin in je firefox plugin directory ?
Ik heb alleen
code:
1
libjavaplugin.so -> /usr/local/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so

en wat zegt firefox bij about:plugins

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • decramy
  • Registratie: December 2001
  • Laatst online: 17-02 21:07

decramy

root@birdie:~#

Topicstarter
mm, dit is idd wel interesant.
als ik de .so van de blackdown-java pak, geeft ie bij t opstarten dus die fout en in about:plugins geeft ie geen java.
als ik de standaard .so pak (die ene uit /usr/local), geeft ie geen fout, geeft een mooie extra tabel bij about plugins, maar zodra ik naar een java-site ga, krijg ik die grote foutmelding

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • Plato-II
  • Registratie: Mei 2002
  • Laatst online: 01-11-2018
Wanneer je een java applicatie uitvoert op je machine, werkt dit dan wel? Dit om eens te controleren of het probleem werkelijk bij de plugin/browser ligt, of dat de JRE niet goed geïnstalleerd is.

  • decramy
  • Registratie: December 2001
  • Laatst online: 17-02 21:07

decramy

root@birdie:~#

Topicstarter
Plato-II schreef op 08 augustus 2004 @ 11:28:
Wanneer je een java applicatie uitvoert op je machine, werkt dit dan wel? Dit om eens te controleren of het probleem werkelijk bij de plugin/browser ligt, of dat de JRE niet goed geïnstalleerd is.
voorbeeldje?
noem es een app...

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 08-02 19:59
decramy schreef op 08 augustus 2004 @ 12:37:
[...]

voorbeeldje?
noem es een app...
limewire, azureus

Taaaa taa taa taaaa taa taa ta taaataaaaa.


  • decramy
  • Registratie: December 2001
  • Laatst online: 17-02 21:07

decramy

root@birdie:~#

Topicstarter
waar limewire crased in een 'su -'
code:
1
2
katrien:~# limewire
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
gaat het verder in een gewone console...
Ik zal de wizzard eens doorlopen en kijken of ie dan mischien al wel crased...
edit:
heeft dus geen zin. Hij crased niet...


Kan het ook zijn dat er iets in de kernel met locales moet gebeuren? Moet firefox opnieuw geinstalled om te vertellen dat ie java heeft? Ondanks het feit dat ie wel in about:plugins komt?

[ Voor 33% gewijzigd door decramy op 08-08-2004 23:57 ]

20*375Wp met Enphase IQ7+ micro's | Stiebel Eltron HGE Water/Water WP 9kW | Tesla M3, powered by SmartEVSE | Servertje @ www.coloclue.net


Verwijderd

waar limewire crased in een 'su -'
Daar helpt misschien dit
code:
1
xauth merge /home/usernaam/.Xauthority

En misschien heb je hier wat aan om het probleem op te sporen:
java installatie handleiding

[ Voor 21% gewijzigd door Verwijderd op 09-08-2004 00:49 ]

Pagina: 1