Re: Java permissions for multiple users?

From: Ian Gil (i_at_NOSPAMALLOWED.com)
Date: 10/04/03


Date: Sat, 04 Oct 2003 05:44:37 GMT


>> As root I've installed java at /usr/local/j2re1.4.2_01 but have run into a snag
>> in that it will only run if I chown -R user.user j2re1.4.2_01 where user is the
>> user who will use java, and any other user will not be able to use it
>> successfully as the browser will crash upon encountering a java web page. This
>> is odd because about:plugins shows everything ok until a java page is
>> encountered, then boom! down browser and all. I'm running mozilla and have a
>> link from
>> /usr/lib/mozilla/plugins/libjavaplugin_oji.so
>> to
>> /usr/local/j2re1.4.2_01/plugin/i386/ns610/libjavaplugin_oji.so
>>
>> I'd like to avoid having to install java in every user's home directory if
>> possible.
>>
>> Ian
>
> Ian, who owns the file and the link? Mine is 1000 (not a user)
> and root.

A regular user owns them both since I had to do

  chown -R <regular user>.<regular user> j2re1.4.2_01

to get that to work only for the specified regular user.
root.staff owned it originally.

> Also, do you have each user's path modified to include
> /usr/java/j2re1.4.2_01/ ?

I don't have a /usr/java I have
  /usr/lib/mozilla/plugins/libjavaplugin_oji.so
linked to
  /usr/local/j2re1.4.2_01/plugin/i386/ns610/libjavaplugin_oji.so

> With these specifications, multiple
> users make use of the system java2 runtime.

I'll try the /usr/java location with the default root.staff ownership,
if this is what's working for you and the correct installation
location/ownership. I installed this from the run time binary at sun.com
but where's the documentation for this? Sun's site just tells you
to decompress their java binary at the "location where you would like the
files to be installed" which leaves thing pretty open.

Thanks,

Ian



Relevant Pages

  • Re: What happened? My "https applets" stopped working
    ... Had to install Office, Photoshop, etc. So over ... They don't work in either browser, ... LIke the test games at the Java site. ... > contains two JAR files. ...
    (comp.lang.java.help)
  • Re: What happened? My "https applets" stopped working
    ... They don't work in either browser, ... LIke the test games at the Java site. ... > I install thngs all the time so I didnt think it would mess up the JAva. ... Did the applets stopped working after Jan 1st (that would be a typical ...
    (comp.lang.java.help)
  • Re: Blaze Find Tool Bar
    ... Kathleen - Here's some help about installing/reinstalling a Java VM: ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... >> programs report as spyware. ...
    (microsoft.public.windowsxp.general)
  • Re: If i download latest OE6 updates, will it update OE also ?
    ... Script Debugging Problem ... Where to get the JAVA VM ... Sun also offers an automatic download and install of the 1.4 Java plug-in ... It may, however, be Shockwave Flash related, try the following: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Microsoft websites screw up IE6(SP2)
    ... I won't get involved in the horrible java mess between MS and Sun. Let them ... > At this point I'm not sure if I agree that the fault lies with SP2. ... > websites compatible with Windows XP Home, which is what I'm running, ... >> JVM for IE (in install), or after install via the JavaPlugin control ...
    (microsoft.public.windows.inetexplorer.ie6.browser)