LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2003, 12:58 PM   #1
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Rep: Reputation: 15
Red face Installing Java in Mandrake


Hi everyone,

I downloaded the java rpm from java.sun.com and presumably installed it...
It's here:

/usr/java/j2re1.4.1_02

And in my user directory I have:

/home/hex/j2re-1_4_1_02-linux-i586-rpm.bin

But when I go to their "test" page I don't see the "coffecup logo" I'm supposed to see if java is installed.. what have I done wrong? Help please, thanks in advance.
 
Old 04-26-2003, 01:04 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You still have to link the plugin to your browser. If your using Mozilla it would be something like:

ln -s /usr/java/j2re1.4.1_02/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.3/plugins
 
Old 04-26-2003, 01:21 PM   #3
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks Crashed Again didn't know about linking.. okay now I get this:
"get java applet started" but the coffeecup logo still doesn't appear. I know I did something wrong, just don't know what
 
Old 04-26-2003, 02:42 PM   #4
sandman
Member
 
Registered: Sep 2002
Distribution: arch
Posts: 232

Rep: Reputation: 30
Did you set the environment variable for Java in your path?
 
Old 04-26-2003, 03:38 PM   #5
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Original Poster
Rep: Reputation: 15
enviroment variable? I did this:

[root@localhost hex]# ln -s /usr/java/j2re1.4.1_02/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.1/plugins

If this what you mean by the enviroment variable then yes, I did.. As you can see I'm clueless Now mozilla (my version 1.1) crashes whenever I try to open a site with java in it
 
Old 04-26-2003, 06:23 PM   #6
sandman
Member
 
Registered: Sep 2002
Distribution: arch
Posts: 232

Rep: Reputation: 30
here is a good explaination I have saved...

now we need to make it so the bash shell is told where java is installed to (through the use of environment variables)

#> cd /etc/profile.d
#> vi java.sh

press 'i' on your keyboard (without the quotes), this enters vi's "INSERT" mode
type these 4 lines into vi

JAVA_HOME=/usr/java/j2re1.4.1_02
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH

now press the escape key
and type ':wq' (without the quotes), this saves and exits vi

#> cd ~

browse to your home directory

#> vi .bash_profile

now right at the end of .bash_profile press 'i' (without the quotes) and type this line:

export PATH=/usr/java/j2re1.4.1_02/bin:$PATH

press the escape key and type ':wq' (without the quotes)

the whole thread can be read here
 
Old 04-27-2003, 03:36 AM   #7
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Quote:
Originally posted by Womandrake
enviroment variable? I did this:

[root@localhost hex]# ln -s /usr/java/j2re1.4.1_02/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.1/plugins

If this what you mean by the enviroment variable then yes, I did.. As you can see I'm clueless Now mozilla (my version 1.1) crashes whenever I try to open a site with java in it
It will work if you use the correct path:

/usr/java/j2sdk1.4.1_02/jre/plugin/i386/ns610/libjavaplugin_oji.so
 
Old 04-28-2003, 12:23 AM   #8
caustin
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
Try using the newer 1.4.2 beta release, this includes gcc 3.2 support. Some newer browsers will require using the file in ns610-gcc32 instead of ns610
 
Old 04-29-2003, 11:11 AM   #9
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks everyone for answering, I was a bit busy last few days I will try your solutions out and let you know which works for me
 
Old 04-29-2003, 11:38 AM   #10
redgore
Member
 
Registered: Dec 2001
Location: England
Distribution: Various,currently Slackware.
Posts: 156

Rep: Reputation: 30
You need to do what sandman said and make sure to chmod 755 java.sh or it wont be read properly !. also when you do the symlink try just having it as libjava.so in your mozilla plugin's dir. Suns docs are really quite bad. I am currently working on a java how-to (one of the only how-to's i cant find any of !)

Last edited by redgore; 04-29-2003 at 11:40 AM.
 
Old 05-01-2003, 01:51 PM   #11
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Original Poster
Rep: Reputation: 15
Guys, I think I just went and made a HUGE mess of things.. I spent the best part of the day installing a newer version of mozilla 1.3.. when I open my browser and check the version it's still version 1.1?! Java still doesn't work because now I'm sure there's a mess with the linking and paths was I supposed to uninstall the older mozilla? Can someone help me fix this mess? Thank you very much indeed those who already answered my java question, and thanks in advance for any further help.
 
Old 05-01-2003, 01:54 PM   #12
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You should remove the old Mozilla. The new one is installed in /usr/lib/mozilla-1.3
 
  


Reply


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
Help installing Java w/ Firefox on Mandrake 10 Cupps Linux - Software 2 05-02-2005 06:56 PM
problems installing sun java compiler in mandrake 10.0 ranger225 Linux - Newbie 2 09-13-2004 07:20 AM
need help installing java on mandrake 10 screw131 Linux - Newbie 4 08-20-2004 05:37 PM
Trouble installing JAVA - Mandrake 10 - Help tcn03u Mandriva 5 07-19-2004 12:36 PM
installing Java on Mandrake. 9.1 ironmc Linux - General 6 05-27-2003 12:42 PM


All times are GMT -5. The time now is 10:56 PM.

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