LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-03-2005, 05:18 PM   #1
amigatec
LQ Newbie
 
Registered: Aug 2001
Location: Oklahoma
Distribution: Mandriva 2007
Posts: 25

Rep: Reputation: 15
Mandrake 10.1 and Java


How do I get Java to work with 10.1 official?

I have always had problems getting java to work with mandrake.
 
Old 01-03-2005, 05:30 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
You can go to www.java.com and download the most recent java. Can you be more specific about your java not being able to work?
 
Old 01-03-2005, 06:07 PM   #3
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
Do what it says in this link: http://goland.org/Tech/Installing_Ja...drake_9_1.html

That's what I did and my java works great.

btw if u google "installing java in mandrake" that is the first article that comes up
 
Old 01-03-2005, 06:10 PM   #4
amigatec
LQ Newbie
 
Registered: Aug 2001
Location: Oklahoma
Distribution: Mandriva 2007
Posts: 25

Original Poster
Rep: Reputation: 15
I have the lastest version installed and have tried it with Opera, Firefox and Konqueror, but the java apps don't run.
 
Old 01-03-2005, 06:23 PM   #5
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
Simply instaling the rpm is not enough, you need to run the plugin to get java to work in your browser, and you need to set up the java variable to be able to open java programs.

Did you run the plugin for mozilla that's in the link?
the plugin should also work for firefox.

This is it:
Quote:
1. Open a root shell
2. You need to link the Java plugin file into your Mozilla installation. The command is "ln -s Y/plugin/i386/ns610/libjavaplugin_oji.so Z/plugins/libjavaplugin_oji.so". Where Y is the jre installation directory and Z is the mozilla installation directory. On my machine the command is "ln -s /usr/java/j2sdk1.4.2/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla-1.3.1/plugins/libjavaplugin_oji.so"
3. NOTE: If you are using Mozilla 1.4 or higher you need to get the .so file from the /ns610-gcc32 directory not the /ns610 directory.
Can you run any java applications? If not then you need to do this (also in the link i gave u):
Quote:
1. As your normal non-root identity use your favorite editor to open ~/.bashrc
2. Add in the following path declaration "PATH=$PATH:X:" where X is the location of the bin directory. In my machine this is "PATH=$PATH:/usr/java/j2sdk1.4.2_01/jre/bin:".
3. Add in the following JAVA_HOME declaration (this tells Java programs where to find the files they need) "JAVA_HOME=X", this is the same X as before so on my system it is "JAVA_HOME=/usr/java/j2sdk1.4.2_01/jre/bin"
4. Then add in two export statements
* export PATH
* export JAVA_HOME
5. Save the file
6. You are now ready to run Java programs
 
Old 01-03-2005, 07:13 PM   #6
amigatec
LQ Newbie
 
Registered: Aug 2001
Location: Oklahoma
Distribution: Mandriva 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
uote:
1. As your normal non-root identity use your favorite editor to open ~/.bashrc
2. Add in the following path declaration "PATH=$PATH:X:" where X is the location of the bin directory. In my machine this is "PATH=$PATH:/usr/java/j2sdk1.4.2_01/jre/bin:".
3. Add in the following JAVA_HOME declaration (this tells Java programs where to find the files they need) "JAVA_HOME=X", this is the same X as before so on my system it is "JAVA_HOME=/usr/java/j2sdk1.4.2_01/jre/bin"
4. Then add in two export statements
* export PATH
* export JAVA_HOME
5. Save the file
6. You are now ready to run Java programs
I have done this and still nothing.
 
Old 01-03-2005, 07:43 PM   #7
amigatec
LQ Newbie
 
Registered: Aug 2001
Location: Oklahoma
Distribution: Mandriva 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Micro420
You can go to www.java.com and download the most recent java. Can you be more specific about your java not being able to work?

In konqueror it says java executable not found. I have added Java to the path in ./bashrc.

I have tried it with 2 different versions of Java and still nothing.
 
Old 01-03-2005, 09:23 PM   #8
rksprst
Member
 
Registered: Jan 2004
Distribution: OS X 10.4
Posts: 172
Blog Entries: 1

Rep: Reputation: 30
I did some googling and I found this answer
Quote:
Erm... Path to java executable should be the FULL PATH to the java executable,
not just the dir it's in!

So you'd need:

/usr/local/j2re1.4.1/bin/java rather than /usr/local/j2re1.4.1/bin/
Hope that helps
 
Old 01-04-2005, 05:51 PM   #9
amigatec
LQ Newbie
 
Registered: Aug 2001
Location: Oklahoma
Distribution: Mandriva 2007
Posts: 25

Original Poster
Rep: Reputation: 15
I have it working in Konqueror and Firefox now, but not Opera.
Used full path for Konqueror and created a Sym Link for Firefox.
 
  


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
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 in Mandrake? bergerdml Mandriva 2 11-03-2003 08:26 AM
java on mandrake razey Linux - Software 11 02-26-2002 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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