Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-01-2002, 09:32 PM   #1
LQ Newbie
Registered: Jun 2002
Distribution: Red Hat 7.1, Slackware 7.0/8.1
Posts: 13

Rep: Reputation: 0
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?
Old 07-01-2002, 10:44 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
use the su command to substitute user..

for full paths of root do this at command prompt:

su - root
Old 07-02-2002, 01:29 AM   #3
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
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
enter password for root account
mv j2sdk1.x.x /usr/local/java
then edit as root
somewhere before export PATH OTHER_POOP_STUFF
and in that export statement I mentioned add
JAVA_HOME so it'll look similar to
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 03:13 AM
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 04:04 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 01:57 PM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 09:02 PM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 09:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration