From: luislupe on
Hi,

Recently, I installed Slackware 11.0 in one computer of mine.

I am not able to use java plugin for Firefox 2.0.0.3.

The error shown by the java console is:
java.security.PrivilegedActionException: java.io.IOException:
Permission denied
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.CredentialManager
$CredentialPersistor.openInputStream(CredentialManager.java:511)
at com.sun.deploy.security.CredentialManager
$CredentialPersistor.getAllPersistedCredentials(CredentialManager.java:
579)
at com.sun.deploy.security.CredentialManager
$CredentialPersistor.access$000(CredentialManager.java:374)
at
com.sun.deploy.security.CredentialManager.<init>(CredentialManager.java:
58)
at
com.sun.deploy.security.CredentialManager.getInstance(CredentialManager.java:
77)
at
com.sun.deploy.services.MPlatformService.getCredentialManager(MPlatformService.java:
153)
at
com.sun.deploy.security.DeployAuthenticator.<init>(DeployAuthenticator.java:
44)
at sun.plugin.AppletViewer.initEnvironment(AppletViewer.java:479)
at sun.plugin.navig.motif.Plugin.doit(Plugin.java:141)
at sun.plugin.navig.motif.Plugin.start(Plugin.java:104)
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:883)
at com.sun.deploy.security.CredentialManager$CredentialPersistor
$1.run(CredentialManager.java:517)
... 11 more

There is some kind of permission missing. Strange thing. As root, I
started X, KDE, Firefox and the plugin worked fine.

I've looked into permissions of java directories and what I get is:
# pwd
/usr/lib

# ll java/ -d
drwxr-xr-x 7 root root 328 2007-04-09 21:53 java/

# ll java
total 216
-r--r--r-- 1 root root 2487 2007-03-14 09:19 COPYRIGHT
-r--r--r-- 1 root root 11149 2007-03-14 09:19 LICENSE
-r--r--r-- 1 root root 13998 2007-03-14 09:19 README
-r--r--r-- 1 root root 178596 2007-03-14 09:19
THIRDPARTYLICENSEREADME.txt
-r--r--r-- 1 root root 968 2007-03-14 09:19 Welcome.html
drwxr-xr-x 2 root root 432 2007-05-03 19:43 bin
drwxr-xr-x 2 root root 72 2007-05-03 19:43 javaws
drwxr-xr-x 17 root root 1752 2007-04-09 21:53 lib
drwxr-xr-x 3 root root 72 2007-04-09 21:53 man
drwxr-xr-x 4 root root 96 2007-03-14 10:57 plugin

# ll java/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 root root 137085 2007-03-14 09:24 java/plugin/i386/ns7/
libjavaplugin_oji.so

# ll java/lib/
total 59882
drwxr-xr-x 2 root root 48 2007-03-14 09:19 applet
drwxr-xr-x 2 root root 80 2007-03-14 10:57 audio
-r--r--r-- 1 root root 1215 2007-03-14 09:03 calendars.properties
-rw-r--r-- 1 root root 6698618 2007-04-09 21:53 charsets.jar
-rw-r--r-- 1 root root 78309 2007-03-14 09:03 classlist
drwxr-xr-x 2 root root 184 2007-03-14 10:57 cmm
-r--r--r-- 1 root root 5874 2007-03-14 09:03 content-
types.properties
drwxr-xr-x 2 root root 608 2007-03-14 10:57 deploy
-rw-r--r-- 1 root root 2676846 2007-04-09 21:53 deploy.jar
drwxr-xr-x 5 root root 128 2007-03-14 10:57 desktop
drwxr-xr-x 2 root root 216 2007-04-09 21:53 ext
-r--r--r-- 1 root root 3878 2007-03-14 09:05 flavormap.properties
-r--r--r-- 1 root root 5438 2007-03-14 09:10 fontconfig.RedHat.
2.1.bfc
-r--r--r-- 1 root root 9060 2007-03-14 09:10 fontconfig.RedHat.
2.1.properties.src
-r--r--r-- 1 root root 5760 2007-03-14 09:10 fontconfig.RedHat.
3.bfc
-r--r--r-- 1 root root 11040 2007-03-14 09:10 fontconfig.RedHat.
3.properties.src
-r--r--r-- 1 root root 4494 2007-03-14 09:10
fontconfig.RedHat.bfc
-r--r--r-- 1 root root 8814 2007-03-14 09:10
fontconfig.RedHat.properties.src
-r--r--r-- 1 root root 1678 2007-03-14 09:10 fontconfig.SuSE.bfc
-r--r--r-- 1 root root 1972 2007-03-14 09:10
fontconfig.SuSE.properties.src
-r--r--r-- 1 root root 4644 2007-03-14 09:10 fontconfig.Sun.bfc
-r--r--r-- 1 root root 8679 2007-03-14 09:10
fontconfig.Sun.properties.src
-r--r--r-- 1 root root 4668 2007-03-14 09:10 fontconfig.Turbo.bfc
-r--r--r-- 1 root root 9233 2007-03-14 09:10
fontconfig.Turbo.properties.src
-r--r--r-- 1 root root 1678 2007-03-14 09:10 fontconfig.bfc
-r--r--r-- 1 root root 1973 2007-03-14 09:10
fontconfig.properties.src
drwxr-xr-x 2 root root 416 2007-03-14 10:57 fonts
drwxr-xr-x 9 root root 1536 2007-04-09 21:53 i386
drwxr-xr-x 2 root root 112 2007-03-14 10:57 im
drwxr-xr-x 4 root root 96 2007-03-14 10:57 images
-rw-r--r-- 1 root root 713847 2007-04-09 21:53 javaws.jar
-r--r--r-- 1 root root 88256 2007-03-14 09:03 jce.jar
-rwxr-xr-x 1 root root 15853 2007-03-14 09:06 jexec
-rw-r--r-- 1 root root 616317 2007-04-09 21:53 jsse.jar
-r--r--r-- 1 root root 2807 2007-03-14 09:05 jvm.hprof.txt
drwxr-xr-x 15 root root 376 2007-03-14 10:57 locale
-r--r--r-- 1 root root 2245 2007-03-14 09:06 logging.properties
drwxr-xr-x 2 root root 208 2007-03-14 10:57 management
-rw-r--r-- 1 root root 382 2007-03-14 09:06 management-agent.jar
-rw-r--r-- 1 root root 1861 2007-03-14 09:19 meta-index
-r--r--r-- 1 root root 3070 2007-03-14 09:06 net.properties
drwxr-xr-x 2 root root 264 2007-03-14 10:57 oblique-fonts
-rw-r--r-- 1 root root 954723 2007-04-09 21:53 plugin.jar
-r--r--r-- 1 root root 3070 2007-03-14 09:06 psfont.properties.ja
-r--r--r-- 1 root root 10669 2007-03-14 09:06 psfontj2d.properties
-rw-r--r-- 1 root root 1101627 2007-03-14 09:19 resources.jar
-rw-r--r-- 1 root root 48167094 2007-04-09 21:53 rt.jar
drwxr-xr-x 2 root root 240 2007-03-14 10:57 security
-r--r--r-- 1 root root 1210 2007-03-14 09:07 sound.properties
drwxr-xr-x 13 root root 648 2007-03-14 10:57 zi

# ll /usr/lib/firefox-2.0.0.3/plugins/ -d
drwxr-xr-x 2 root root 160 2007-05-03 19:45 /usr/lib/firefox-2.0.0.3/
plugins/

# ll /usr/lib/firefox-2.0.0.3/plugins/libjavaplugin_oji.so
lrwxrwxrwx 1 root root 50 2007-05-03 19:45 /usr/lib/firefox-2.0.0.3/
plugins/libjavaplugin_oji.so -> /usr/lib/java/plugin/i386/ns7/
libjavaplugin_oji.so

# echo $JAVA_HOME
/usr/lib/java

The package I am trying to use is this one:
# ll /var/adm/packages/jre-1.6.0_01-i586-1kjz
-rw-r--r-- 1 root root 32698 2007-05-03 19:43 /var/adm/packages/
jre-1.6.0_01-i586-1kjz

I tried with the default Slack 11.0 package and I also cannot run java
applications.

Can anyone give me a hint on this?

Luis

From: Allan on

<luislupe(a)gmail.com> wrote in message
news:1178224684.385114.299220(a)q75g2000hsh.googlegroups.com...
> Hi,
>
> Recently, I installed Slackware 11.0 in one computer of mine.
>
> I am not able to use java plugin for Firefox 2.0.0.3.
>
> The error shown by the java console is:
> java.security.PrivilegedActionException: java.io.IOException:
> Permission denied
> at java.security.AccessController.doPrivileged(Native Method)
> at com.sun.deploy.security.CredentialManager
> $CredentialPersistor.openInputStream(CredentialManager.java:511)
> at com.sun.deploy.security.CredentialManager
> $CredentialPersistor.getAllPersistedCredentials(CredentialManager.java:
> 579)
> at com.sun.deploy.security.CredentialManager
> $CredentialPersistor.access$000(CredentialManager.java:374)
> at
> com.sun.deploy.security.CredentialManager.<init>(CredentialManager.java:
> 58)
> at
> com.sun.deploy.security.CredentialManager.getInstance(CredentialManager.java:
> 77)
> at
> com.sun.deploy.services.MPlatformService.getCredentialManager(MPlatformService.java:
> 153)
> at
> com.sun.deploy.security.DeployAuthenticator.<init>(DeployAuthenticator.java:
> 44)
> at sun.plugin.AppletViewer.initEnvironment(AppletViewer.java:479)
> at sun.plugin.navig.motif.Plugin.doit(Plugin.java:141)
> at sun.plugin.navig.motif.Plugin.start(Plugin.java:104)
> Caused by: java.io.IOException: Permission denied
> at java.io.UnixFileSystem.createFileExclusively(Native Method)
> at java.io.File.createNewFile(File.java:883)
> at com.sun.deploy.security.CredentialManager$CredentialPersistor
> $1.run(CredentialManager.java:517)
> ... 11 more
>
> There is some kind of permission missing. Strange thing. As root, I
> started X, KDE, Firefox and the plugin worked fine.
>
> I've looked into permissions of java directories and what I get is:
> # pwd
> /usr/lib
>
> # ll java/ -d
> drwxr-xr-x 7 root root 328 2007-04-09 21:53 java/
>
> # ll java
> total 216
> -r--r--r-- 1 root root 2487 2007-03-14 09:19 COPYRIGHT
> -r--r--r-- 1 root root 11149 2007-03-14 09:19 LICENSE
> -r--r--r-- 1 root root 13998 2007-03-14 09:19 README
> -r--r--r-- 1 root root 178596 2007-03-14 09:19
> THIRDPARTYLICENSEREADME.txt
> -r--r--r-- 1 root root 968 2007-03-14 09:19 Welcome.html
> drwxr-xr-x 2 root root 432 2007-05-03 19:43 bin
> drwxr-xr-x 2 root root 72 2007-05-03 19:43 javaws
> drwxr-xr-x 17 root root 1752 2007-04-09 21:53 lib
> drwxr-xr-x 3 root root 72 2007-04-09 21:53 man
> drwxr-xr-x 4 root root 96 2007-03-14 10:57 plugin
>
> # ll java/plugin/i386/ns7/libjavaplugin_oji.so
> -rwxr-xr-x 1 root root 137085 2007-03-14 09:24 java/plugin/i386/ns7/
> libjavaplugin_oji.so
>
> # ll java/lib/
> total 59882
> drwxr-xr-x 2 root root 48 2007-03-14 09:19 applet
> drwxr-xr-x 2 root root 80 2007-03-14 10:57 audio
> -r--r--r-- 1 root root 1215 2007-03-14 09:03 calendars.properties
> -rw-r--r-- 1 root root 6698618 2007-04-09 21:53 charsets.jar
> -rw-r--r-- 1 root root 78309 2007-03-14 09:03 classlist
> drwxr-xr-x 2 root root 184 2007-03-14 10:57 cmm
> -r--r--r-- 1 root root 5874 2007-03-14 09:03 content-
> types.properties
> drwxr-xr-x 2 root root 608 2007-03-14 10:57 deploy
> -rw-r--r-- 1 root root 2676846 2007-04-09 21:53 deploy.jar
> drwxr-xr-x 5 root root 128 2007-03-14 10:57 desktop
> drwxr-xr-x 2 root root 216 2007-04-09 21:53 ext
> -r--r--r-- 1 root root 3878 2007-03-14 09:05 flavormap.properties
> -r--r--r-- 1 root root 5438 2007-03-14 09:10 fontconfig.RedHat.
> 2.1.bfc
> -r--r--r-- 1 root root 9060 2007-03-14 09:10 fontconfig.RedHat.
> 2.1.properties.src
> -r--r--r-- 1 root root 5760 2007-03-14 09:10 fontconfig.RedHat.
> 3.bfc
> -r--r--r-- 1 root root 11040 2007-03-14 09:10 fontconfig.RedHat.
> 3.properties.src
> -r--r--r-- 1 root root 4494 2007-03-14 09:10
> fontconfig.RedHat.bfc
> -r--r--r-- 1 root root 8814 2007-03-14 09:10
> fontconfig.RedHat.properties.src
> -r--r--r-- 1 root root 1678 2007-03-14 09:10 fontconfig.SuSE.bfc
> -r--r--r-- 1 root root 1972 2007-03-14 09:10
> fontconfig.SuSE.properties.src
> -r--r--r-- 1 root root 4644 2007-03-14 09:10 fontconfig.Sun.bfc
> -r--r--r-- 1 root root 8679 2007-03-14 09:10
> fontconfig.Sun.properties.src
> -r--r--r-- 1 root root 4668 2007-03-14 09:10 fontconfig.Turbo.bfc
> -r--r--r-- 1 root root 9233 2007-03-14 09:10
> fontconfig.Turbo.properties.src
> -r--r--r-- 1 root root 1678 2007-03-14 09:10 fontconfig.bfc
> -r--r--r-- 1 root root 1973 2007-03-14 09:10
> fontconfig.properties.src
> drwxr-xr-x 2 root root 416 2007-03-14 10:57 fonts
> drwxr-xr-x 9 root root 1536 2007-04-09 21:53 i386
> drwxr-xr-x 2 root root 112 2007-03-14 10:57 im
> drwxr-xr-x 4 root root 96 2007-03-14 10:57 images
> -rw-r--r-- 1 root root 713847 2007-04-09 21:53 javaws.jar
> -r--r--r-- 1 root root 88256 2007-03-14 09:03 jce.jar
> -rwxr-xr-x 1 root root 15853 2007-03-14 09:06 jexec
> -rw-r--r-- 1 root root 616317 2007-04-09 21:53 jsse.jar
> -r--r--r-- 1 root root 2807 2007-03-14 09:05 jvm.hprof.txt
> drwxr-xr-x 15 root root 376 2007-03-14 10:57 locale
> -r--r--r-- 1 root root 2245 2007-03-14 09:06 logging.properties
> drwxr-xr-x 2 root root 208 2007-03-14 10:57 management
> -rw-r--r-- 1 root root 382 2007-03-14 09:06 management-agent.jar
> -rw-r--r-- 1 root root 1861 2007-03-14 09:19 meta-index
> -r--r--r-- 1 root root 3070 2007-03-14 09:06 net.properties
> drwxr-xr-x 2 root root 264 2007-03-14 10:57 oblique-fonts
> -rw-r--r-- 1 root root 954723 2007-04-09 21:53 plugin.jar
> -r--r--r-- 1 root root 3070 2007-03-14 09:06 psfont.properties.ja
> -r--r--r-- 1 root root 10669 2007-03-14 09:06 psfontj2d.properties
> -rw-r--r-- 1 root root 1101627 2007-03-14 09:19 resources.jar
> -rw-r--r-- 1 root root 48167094 2007-04-09 21:53 rt.jar
> drwxr-xr-x 2 root root 240 2007-03-14 10:57 security
> -r--r--r-- 1 root root 1210 2007-03-14 09:07 sound.properties
> drwxr-xr-x 13 root root 648 2007-03-14 10:57 zi
>
> # ll /usr/lib/firefox-2.0.0.3/plugins/ -d
> drwxr-xr-x 2 root root 160 2007-05-03 19:45 /usr/lib/firefox-2.0.0.3/
> plugins/
>
> # ll /usr/lib/firefox-2.0.0.3/plugins/libjavaplugin_oji.so
> lrwxrwxrwx 1 root root 50 2007-05-03 19:45 /usr/lib/firefox-2.0.0.3/
> plugins/libjavaplugin_oji.so -> /usr/lib/java/plugin/i386/ns7/
> libjavaplugin_oji.so
>
> # echo $JAVA_HOME
> /usr/lib/java
>
> The package I am trying to use is this one:
> # ll /var/adm/packages/jre-1.6.0_01-i586-1kjz
> -rw-r--r-- 1 root root 32698 2007-05-03 19:43 /var/adm/packages/
> jre-1.6.0_01-i586-1kjz
>
> I tried with the default Slack 11.0 package and I also cannot run java
> applications.
>
> Can anyone give me a hint on this?
>
> Luis
>
As the Java plug-in is supposed to install cleanly on Linux, I suggest you
try Sun's own website or help forums :
http://java.com/en/download/help/ . Maybe it wasn't tested properly on
your distro during development.


From: D Herring on
luislupe(a)gmail.com wrote:
> I am not able to use java plugin for Firefox 2.0.0.3.
>
> The error shown by the java console is:
....
> Caused by: java.io.IOException: Permission denied
> at java.io.UnixFileSystem.createFileExclusively(Native Method)
> at java.io.File.createNewFile(File.java:883)
> at com.sun.deploy.security.CredentialManager$CredentialPersistor
> $1.run(CredentialManager.java:517)
> ... 11 more

Close Firefox and any other java apps before trying the following:

a) Try running /usr/lib/java/bin/ControlPanel From your error message,
I'd guess the "Temporary Internet Files" settings point to an
invalid/write protected path.

b) If that doesn't work, try `rm -rf ~/.java`

c) If none of the above fix this, does the following work (all in one line)?

appletviewer
http://www.time.gov/timezone.cgi?Eastern/d/-5/java/utcnist4.class

If not, what error message does it give?

- Daniel