[plug] How to let all users use Java?

Christian christian at amnet.net.au
Mon Feb 26 08:33:58 WST 2001


On Fri, Feb 23, 2001 at 11:19:00AM +1600, Ari Finander wrote:
>      I tried to use the javac (java compiler) command as a user, and
> it didn't work.  I haven't tried to use the javac command as root yet
> (because it's 2:30 am, and by the time I'm ready to work some more on
> learning linux I'm hoping to have some replies to all the questions
> I'm about to post *grin*).  
>      I placed the binary file in the /usr/bin/Java directory, changed
> the permissions on the binary installation file with the Gnome File
> Manager to make it executable (and changed the owner and group to
> root) and installed Java without problems (even my failed attempt at
> installing sun's star office 5.2 was able to detect the jdk1.3 files).

There are two possible problems: either the file permissions are wrong
(fix: make the program executable by 'other') or the file isn't in the
user's path (fix: add 'export PATH=$PATH:/usr/bin/Java' to your user's
shell startup files).  You can easily tell which problem by running
/usr/bin/Java/javac. If it works then it's a path problem.  If it gives
a permissions error then obviously its a permissions problem.



More information about the plug mailing list