LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Java- Help! (https://www.linuxquestions.org/questions/linux-newbie-8/java-help-24798/)

boowax 07-01-2002 08:32 PM

Java- Help!
 
I have tried for more than a week to install both the java sdk and the plugin for mozilla to no avail. I downloaded the sdk binary that spits out an rpm, which I then ran and still no java. I'm trying to use java to run Jedit amongst other things and I can't figure out what to put in the $JAVA_HOME variable in the jedit script. As for the plugin I've downloaded it several times and gotten "Access Denied" on the little installer window. I assume this has something to do with root priviledges but I don't want to logout and log in as root to download this if I don't have to since it takes a while and I'd have to close the other stuff I'm working on. Is there any way to give mozilla SU privileges without logging in as root like there is for command line stuff?

trickykid 07-01-2002 09:44 PM

use the su command to substitute user..

for full paths of root do this at command prompt:

su - root

neo77777 07-02-2002 12:29 AM

As for java this rpmish thing should create j2sdk1.x.x directory in the current directory what you need to do then open an Xterm, if the java install thingy is in your home directory then j2sdk1.x.x is there too
at the prompt type
ls -ldtr j2*
it should return the directory
now su into root
su
enter password for root account
mv j2sdk1.x.x /usr/local/java
then edit as root
/etc/profile
somewhere before export PATH OTHER_POOP_STUFF
add
PATH=$PATH:/usr/local/java/bin
JAVA_HOME=/usr/local/java
and in that export statement I mentioned add
JAVA_HOME so it'll look similar to
export PATH OTHER_POOP_STUFF JAVA_HOME
save changes to this file
and run
. /etc/profile
then run the same command as regular user ( it is dot followed by the space /etc/profile)
you should be hooked up with java
next thing will be to setup plugins
as root again you should make symbolic links
cd /usr/lib/netscape/plugins
ln -sf /usr/local/java/jre/plugin/i386/netscape4/<hit TAB key>
cd /usr/lib/mozilla/plugins
ln -sf /usr/local/java/jre/plugin/i386/netscape6/<hit TAB KEY>

Note depending on jsdk version the jre plugin dirs are different you should figure it out yourself
and the location of mozilla and netscape might be different, explore your system to find the right ones if they are not where I told you.
Good luck


All times are GMT -5. The time now is 04:29 PM.