[java-plugin (formerly icedtea-web)] Can't use the plugin as normal user "After all attempts, your configuration directory ... does not exist"

asked 2014-12-05 08:11:57 -0500

Nukles gravatar image

Hi all,

I'm struggling with java-plugin. I am using Fedora 20 x86_64. I needed to install the Java Plugin on Firefox so that I could use Java on the browser for some business applications. My java -version recites:

java version "1.7.0_71"
OpenJDK Runtime Environment (fedora-2.5.3.0.fc20-x86_64 u71-b14)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

I read in some forum that I needed the open jdk plugin for the web, which was called icedtea-web and now it's called java-plugin. So I installed it with yum.

After that I re-started Firefox, went to the page to verify Java ( https://www.java.com/en/download/installed.jsp ), and clicked on "Verify Java Version". After I allowed the plugin to work, I got a pop up from Java saying:

After all attempts, your configuration directory /home/[my username]/.cache/icedtea-web/cache does not exist.
Your configuration directory /home/[my username]/.cache/icedtea-web/cache is not a directory
Your configuration directory /home/[my username]/.cache/icedtea-web/cache can not be read/written properly

This is repeated a number of times for the following other directories:

/home/[my username]/.cache/icedtea-web/pcache
/home/[my username]/.cache/icedtea-web/tmp
/home/[my username]/.config/icedtea-web/log

Of course instead of [my_username] there is my username.

I instantly thought about permissions, and rightfully so apparently, as if I started Firefox as Root, the verification through the same website went flawlessly.

I even tried to create these three directories, even "the hard way" making the umask 777, but still no luck.

I am sure it is a question of permissions, because as root it works, but not as normal user. What do you think?

Thanks!

edit retag flag offensive close merge delete

Comments

Doesn't yum install icedtea-web work for you? I haven't had any issues with it. Another thing to try would be to create a new firefox profile to see if it works: firefox -ProfileManager

FranciscoD_ gravatar imageFranciscoD_ ( 2014-12-06 08:07:06 -0500 )edit

If you've ran firefox as root, ie sudo firefox, it could inherit environment variables from your user session and create directories owned by root in your users's home directory. Then the normal user won't be able to access them, and you will see errors like the ones you posted.

Running a browser as root isn't a good idea. The root account is for system-wide administration tasks, not running user applications like a browser. It should not even be part of your diagnostic process. If you were having problems with your car not going over 35mph, your mechanic would not like to hear "it will go faster if I put jet fuel in it and drive it off a cliff" :)

randomuser gravatar imagerandomuser ( 2014-12-06 11:50:57 -0500 )edit