LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-29-2003, 11:03 PM   #1
Chazb
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Rep: Reputation: 0
Mandrake 9.1+Java


Is there a sure fire way to get java working in Mandrake 9.1, globaly/mozilla, without re-compileing, editing, copying, linking, more or less, A SIMPLE WAY?
 
Old 06-29-2003, 11:32 PM   #2
akaBeaVis
LQ Guru
 
Registered: Apr 2003
Location: Maryland
Distribution: Slack 9.1,10 Mandrake 10,10.1, FedCore 2,3, Mepis 2004, Knoppix 3.6,3.7, SuSE 9.1, FreeBSD 5.2
Posts: 1,109

Rep: Reputation: 45
shoulda been part of the default install, what are you having problems with?
 
Old 06-30-2003, 01:43 AM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
a SIMPLE ways? Well, open mozilla at ROOT, then connect to yahoo.games (or any site that need java) a pop-up will come and say you need to iunstall the java plugin to make it work. Say yes, it will download install and configure alone.
Easy.
 
Old 06-30-2003, 02:02 AM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Another way is to download JAVA and install JAVA as root or su. Then make a symbolic link from .../java/j2sdk1.4.1_01/jre/plugin/i386/ns600/libjavaplugin_oji.so in the plugins directory of mozilla. A great way if you want to see how symbolics work.

Be careful running programs as root!!!!
 
Old 06-30-2003, 02:35 PM   #5
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Rep: Reputation: 31
This is the link for the latest Java.

http://java.sun.com/webapps/download.../download.html

The rpm.bin file just produces a copyright agreement and then exports a good old rpm file when you agree. This can be installed in Mandrake using KPackage, (which is not installed by default and is on Disk 3 of the download edition,) or the usual command line. Personally I always use KPackage where an rpm is not available in urpmi...

For copyright reasons I don't think Mandrake could have put it on the download edition, dunno about the ones you pay for.

DAVE

Last edited by davecs; 06-30-2003 at 02:36 PM.
 
Old 06-30-2003, 03:23 PM   #6
mtb
Member
 
Registered: Nov 2002
Location: Italy
Distribution: Linux Mint 17 Xfce
Posts: 284

Rep: Reputation: 30
Quote:
Originally posted by Half_Elf
a SIMPLE ways? Well, open mozilla at ROOT, then connect to yahoo.games (or any site that need java) a pop-up will come and say you need to iunstall the java plugin to make it work. Say yes, it will download install and configure alone.
Easy.
I have tried with mozilla 1.3 and it has crashed. 3 times (:= more then 2 hours ).

Imo it's better to donwload the java runtime environment from sun's site ( also faster ).
 
Old 06-30-2003, 05:22 PM   #7
Chazb
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Original Poster
Rep: Reputation: 0
now what

OK I downloaded the java.bin, ran it as root, and it extracted/inflated, and now i have /home/myusername/j2re1.4.1_03 folder, but not a /java/......
so now what to do?
thanks for the help.
 
Old 06-30-2003, 05:27 PM   #8
Chazb
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Original Poster
Rep: Reputation: 0
BTW

By the way, I did a full install of Mandrake 9.1 there was no java, now with Mozilla, it doesnt ask me to install, just shows the puzzle pc. and if you click it it says you need JavaVM plugin to view. Konqueror just loads page to 99% and says loading applets.......nothing
 
Old 06-30-2003, 05:49 PM   #9
Chazb
LQ Newbie
 
Registered: Jun 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I got it!

Thanks for the link, the RPM did the trick, and then linking, the other thing that I downloaded just sat there.

Im not a "click n drool" I dont mind working a little to get things to work, just needed a little help, Still dont understand why they wouldnt have flash/shockwave, and java installed, but they would have divx codecs?? Anyway, thanks, ill save that RPM for the future.
 
Old 07-01-2003, 12:54 PM   #10
mbbender
LQ Newbie
 
Registered: Jul 2003
Location: NC
Posts: 17

Rep: Reputation: 0
I'm sort of new to linux and am having a similar problem with java.

I just installed Red Hat 9. It came with java1.3.1 I think. I wanted to upgrade this so I downloaded 1.4.1_03. I just downloaded the jre, not the sdk. I followed some HOW-TO's to install it.

It was all installed into /usr/java/j2re1.4.1_03/
When I did java -version I still got the 1.3.1.

So i noticed there was a /java directory on the root and I turned the /java directory into the j2re1.4.1_03 directory. So now the /java directory has the same structure as the j2re1.4.1_03 directory. This did not help my version. However, when I called the whole path it was the right version, ie /java/bin/java -version it came up correctly with version 1.4.1. So I continued looking.

I also set my environment variables by creating /etc/profile.d/java.sh
This file contains
export JAVA_HOME=/java/bin
export CATALINA_HOME=/opt/tomcat
export PATH=$PATH:/java/bin
export PATH=$PATH:/java/lib/i386
export LD_LIBRARY_PATH=/java/lib/i386


I found that /usr/bin/java -version was 1.3.1. This was the only place I found 1.3.1 instead of 1.4.1. I thought it would be a good idea to
cp /java/bin/java /usr/bin/java and overide the current java in the /usr/bin so that when I went /usr/bin/java -version I would get 1.4.1

The result was not that at all. Instead I got errors "can't find libjava.so" "can't find java 2 runtime environment".

I've been trying to fix this problem for about a day now. I uninstalled the 1.4.1 package and put back on 1.3.1_08 and recopied the /usr/bin/java file with the 1.3.1_08 version. This got rid of the error "can't find java 2 runtime environment". I still have "can't find libjava.so" error. I've looked online and have found no comprehensive solutions.

I think the following solutions would be most helpful to me.
1) Help me fix this problem and end witth the 1.4.1 package or
2) Tell me how I can just get it back to how it was when I installed red hat 9 and I can start over trying to install 1.4.1 cleanly.
 
Old 08-03-2003, 04:19 PM   #11
tcarlaw
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
To get games in Yahoo working I did the following:

I downloaded the file from http://java.sun.com/webapps/download.../download.html

I went to the directory the file was in and typed install jre....-rpm.bin

It created an rpm file in the directory.
I opened the file using kpackage and installed jre---..

I then opened a terminal and typed:
#su
#mozilla

Went to games.yahoo.com using mozilla and opened a window.

This worked fine. I then went to konqueror made sure Java was enabled and I could then open the same page in konqueror and it finally worked.
 
  


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
Java 1.5 in mandrake 10.1 goofy871 Linux - Software 6 03-15-2005 01:26 PM
Mandrake 10.1 and Java amigatec Mandriva 8 01-04-2005 05:51 PM
java on mandrake irish rebel Linux - Software 0 06-05-2004 10:49 AM
Mandrake 9.2 and java PapaNoHair Mandriva 5 03-15-2004 08:34 PM
java on mandrake razey Linux - Software 11 02-26-2002 07:14 PM


All times are GMT -5. The time now is 05:13 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