Summary: | Java applets do not work | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Daniel Moyne <dmoyne> |
Component: | general | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | andresbajotierra, daniel.moyne, finex, jtamate, maksim, matej, pino |
Priority: | NOR | Keywords: | triaged |
Version: | 4.0.3 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Daniel Moyne
2008-05-08 23:52:44 UTC
I confirm this in 4.0.4 kubuntu (and the bug isn't new from 4.0.3 if I remember right). I can confirm this behaviour even with the 4.1-RC1 builds on both kubuntu and gentoo Using KDE 4.1.00 (KDE 4.1.0) (KDEmod) in ArchLinux i686 JRE 6u7 I can reproduce this bug. doesn't work in ArchLinux, kde 4.1.00 (4.1.0) (not kdemod), java 1.6u7 I confirm this bug here too. KDEmod 4.1 with jre 6u7 on Arch. *** Bug 168496 has been marked as a duplicate of this bug. *** SVN commit 843223 by pino: Use the right cmake variable for the data directory, so the policy file points to the correct directory. The mismatch may happen in case a particular datadir is set, eg by some distro. This may fix bug #161825. CCBUG: 161825 M +1 -1 kjava.policy.in.cmake WebSVN link: http://websvn.kde.org/?view=rev&revision=843223 SVN commit 843224 by pino: Backport SVN commit 843223 by pino: Use the right cmake variable for the data directory, so the policy file points to the correct directory. The mismatch may happen in case a particular datadir is set, eg by some distro. This may fix bug #161825. CCBUG: 161825 M +1 -1 kjava.policy.in.cmake WebSVN link: http://websvn.kde.org/?view=rev&revision=843224 Who compiles from sources (either trunk/4.2 or branch/4.1) and has the problem, please update and report whether the problem is fixed. For people who use distro packages, please (hopefully) wait for KDE 4.1.1 and verify again. Thanks for the cooperation. Hi, KDE 4.1.0, my kjava.policy seems to be okay, but java in konqueror still does not work [1]. It works in Konq 3.5.9. esprimo ~ # grep codeBase /usr/kde/4.1/share/apps/kjava/kjava.policy grant codeBase "file:/usr/kde/4.1/share/apps/kjava/-" [1] http://www.java.com/en/download/help/testvm.xml re: comment #10: also please make sure you have the mimetype application/x-java-applet available. Maksim, I do have onely application/x-java (which has kjavaappletviewer as associated kpart) and application/x-java-archive. What package is responsible for that mime info, sun-java? (In reply to comment #12) > What package is responsible for that mime info, sun-java? kdelibs. Please verify the following: $ kde4-config --path xdgdata-mime its output should contain a subdirectory of `kde4-config --prefix`. If it does not, see what $ env | grep XDG returns. Thanks for your quick reply, Pino. My environment seem correctly setup: strohel@esprimo ~ $ kde4-config --path xdgdata-mime /home/strohel/.local/share/mime/:/usr/kde/4.1/share/mime/:/usr/share/mime/ strohel@esprimo ~ $ kde4-config --prefix /usr/kde/4.1 strohel@esprimo ~ $ env | grep XDG XDG_CONFIG_DIRS=/usr/kde/4.1/etc/xdg XDG_DATA_DIRS=/usr/kde/4.1/share:/usr/share strohel@esprimo ~ $ grep -r applet /home/strohel/.local/share/mime/ strohel@esprimo ~ $ grep -r applet /usr/kde/4.1/share/mime/ /usr/kde/4.1/share/mime/packages/kde.xml: <mime-type type="application/x-java-applet"> /usr/kde/4.1/share/mime/packages/kde.xml: <comment>Java applet</comment> strohel@esprimo ~ $ grep -r applet /usr/share/mime mime/ mime-info/ mimelnk/ strohel@esprimo ~ $ grep -r applet /usr/share/mime/ strohel@esprimo ~ $ However, java applets do not work and application/x-java-plugin entry does not show up in System Settings → File Associations. I've found that also some other mimetypes from /usr/kde/4.1/share/mime/packages/kde.xml do not appear in File Associations, for example application/metalink+xml, application/x-cda.. Isn't that because they don't have their own .xml files? Dunno. Using shared-mime-info-0.30. (In reply to comment #14) > However, java applets do not work and application/x-java-plugin entry does not > show up in System Settings → File Associations. Try the following: as root: update-mime-database /usr/kde/4.1/share/mime then, as user: kbuildsycoca4 --noincremental How did you install kde4? Because it seems update-mime-database was not run on installation... (In reply to comment #15) > Try the following: > as root: update-mime-database /usr/kde/4.1/share/mime > then, as user: kbuildsycoca4 --noincremental > > How did you install kde4? Because it seems update-mime-database was not run on > installation... Oh yes, it did the trick, Java working. So this is definitely a Gentoo bug, will report that. (I suspect it does not work with all combinations of "Use security manager", "Use KIO", and "Shutdown applet server when inactive", but that would be another bug and I have to investigate more deeply) So, thanks you, Pino and Maksim, for your cooperation. As far as I'm concerned, this could be closed as WORKSFORME. It works also for me in konqueror 4.1.68 (opensuse unstable). Can anyone still reproduce this bug with a recent KDE version? (4.1.3 / 4.2beta2 / 4.2svn) or trying comment 15 ? Thanks :) (In reply to comment #18) > Can anyone still reproduce this bug with a recent KDE version? (4.1.3 / > 4.2beta2 / 4.2svn) or trying comment 15 ? Thanks :) > Not really. Should be closed IMO. Matěj. Closing as worksforme (no feedback in two years). |