LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-06-2004, 04:13 PM   #1
tewaru
Member
 
Registered: Nov 2002
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 46

Rep: Reputation: 15
java install problems have read postings mandrake 9.1


Iam trying install java in mandrake 9.1 and having problems getting java to work.
I have read most of the postings and have tried out most of the remedies however still cannot get java to work in firefox.

1. Download and check the file size.
You can download to any directory you choose.
Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.
2. Extract the contents of the downloaded file.
Change directory to where the downloaded file is located and run these commands to first set the executable permissions and then run the binary to extract the RPM file:
chmod a+x j2re-1_5_0_<version>-linux-i586-rpm.bin

./j2re-1_5_0_<version>-linux-i586-rpm.bin
Note that the initial "./" is required if you do not have "." in your PATH environment variable.
The script displays a binary license agreement, which you are asked to agree to before installation can proceed. Once you have agreed to the license, the install script creates the file j2re-1_5_0_<version>-linux-i586.rpm in the current directory.
3. Become root by running the su command and entering the super-user password.
4. Run the rpm command to install the packages that comprise the Java 2 Runtime Environment:
rpm -iv j2re-1_5_0_<version>-linux-i586.rpm

Done this then
tewaru@localhost tewaru]$ which java
which: no java in (/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/tewaru/bin)
[tewaru@localhost tewaru]$
So Then done as advised in postings
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
PATH=$PATH:/usr/local/sunjava/j2re1.4.2/jre/bin
JAVA_HOME=usr/local/sunjava/j2re1.4.2/jre/bin
export PATH
export JAVA_HOME
unset USERNAME

So then got this again

tewaru@localhost tewaru]$ which java
which: no java in (/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/tewaru/bin)
[tewaru@localhost tewaru]$
have pointed the plug in to firefox and, its in the plug in directory
I would appreciate any advice Thanks
Tewaru
 
Old 05-06-2004, 05:35 PM   #2
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
I have understood correct that you have created the symbolic link to the java plugin in the firefox plugins directory.If not try:

ln -s /usr/local/sunjava/j2re1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /path/to/firefox/plugins/libjavaplugin_oji.so
 
Old 05-06-2004, 05:47 PM   #3
tewaru
Member
 
Registered: Nov 2002
Location: New Zealand
Distribution: Mandrake 9.0
Posts: 46

Original Poster
Rep: Reputation: 15
ln -s /usr/local/sunjava/j2re1.4.2/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /path/to/firefox/plugins/libjavaplugin_oji.so
Yes I done the above and have confirmed that libjavaplugin_oji.so is in the firefox plugins directory
Tewaru

Last edited by tewaru; 05-06-2004 at 05:49 PM.
 
Old 05-07-2004, 02:26 AM   #4
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
try linking to a different plugin in the JRE plugin folder, you might need a different one for firefox (i don't know cause I use mozilla).
 
  


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
About to install Mandrake 10 and XP but worried because of problems I've read about. Jimmer Linux - Software 4 10-15-2004 11:57 AM
Mandrake 9.2 Install - Won't read CD properly? Foxy Mandriva 2 07-02-2004 07:42 AM
mandrake 10 install problem(please read) meccax5 Mandriva 2 06-09-2004 07:49 AM
Java install problems mandrake 9.1 have wiewed postings tewaru Linux - Newbie 0 05-06-2004 04:06 PM
java and flashplayer install problems on Mandrake 9.1 gasfrog Linux - Newbie 14 07-20-2003 06:12 PM


All times are GMT -5. The time now is 03:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration