LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-24-2010, 01:47 PM   #1
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Rep: Reputation: 5
"InstallIng Java"


Hi,
I am trying to install javain my machine but dont think its happening.

I d/led the java package from java website and kept it in /opt/java
then i ran ./jre-6u21-linux-i586-rpm.bin.

also added export JAVA_HOME=/opt/java/jre-6u21-linux-i586-rpm.bin/
export PATH="$JAVA_HOME/bin:$PATH"
in my /etc/profile.

Now when i verify my java installation online on java website it show missing plugin.

what should i do?
 
Old 09-24-2010, 02:22 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to put the plugin file in your browser's plugins directory. Did you read the instructions?

Last edited by Nylex; 09-24-2010 at 02:25 PM.
 
Old 09-24-2010, 02:41 PM   #3
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
You have got your JAVA_HOME wrong.

By default Java is installed /usr/java/jdk<version>
 
Old 09-24-2010, 04:08 PM   #4
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by Nylex View Post
You need to put the plugin file in your browser's plugins directory. Did you read the instructions?
yes its automatically created..
In my case, m using mozilla, so there is already a symbolic link created.
lrwxrwxrwx 1 root root 39 Sep 23 13:40 libflashplayer.so -> /usr/lib/flash-plugin/libflashplayer.so
in mozilla/plugin

Still not working.
 
Old 09-24-2010, 04:46 PM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Adobe Flash (libflashplayer.so) is not Java. You need the netscape or i386 java plugin from your java installation and symlink it in yourself most likely.
 
Old 09-24-2010, 04:59 PM   #6
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Rep: Reputation: 147Reputation: 147
Shamelessly stealing from knudfl's post to me, try from terminal as root:

/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_21/bin/java /usr/sbin/alternatives --config java
.. and choose "sun".


This is the alternative knudfl gave that I used. Worked like a charm. Note that the link is to libbpjp2.so. MAKE APPRORIATE ADJUSTMENTS FOR YOUR INSTALL PATH AND jAVA VERSION


Firefox : You can just make a direct link like this :
cd /usr/lib/mozilla/plugins
# ln -s /usr/java/java-1.6.0-sun-1.6.0.21/jre/lib/i386/libnpjp2.so
 
Old 09-24-2010, 05:43 PM   #7
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
can u please tell me which file to link to in /i386 if iam not using alternative option.
 
Old 09-24-2010, 06:26 PM   #8
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
I realy dont know whats going wrong?
i d/led jdk-6u21-linux-i586.bin package from java site and kept in /usr/java.
Then i ran ./jdk..... and jdk1.6.0_21 was created in /usr/java.
creatd a soft link in mozilla/plugin
ln -s /usr/java/jdk1.6.0_21/jre/lib/i386/libjavaplugin_nscp_gcc29.so /u

Added
export JAVA_HOME=/usr/java/jdk-6u21-linux-i586.bin
export PATH="$JAVA_HOME/bin:$PATH"
to /etc/profile.
Restarted my computer, still installation is not complete. Now what should i do?
 
Old 09-24-2010, 08:44 PM   #9
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Rep: Reputation: 147Reputation: 147
Firefox : You can just make a direct link like this -- (as root, in terminal):

change your director to : /usr/lib/mozilla/plugins

Once in that directory (in terminal, as root), type: ln -s /usr/java/java-1.6.0-sun-1.6.0.21/jre/lib/i386/libnpjp2.so



Like I posted above, that's what knudfl instructed, and it worked like a charm.
 
Old 09-25-2010, 01:57 AM   #10
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by moxieman99 View Post
Firefox : You can just make a direct link like this -- (as root, in terminal):

change your director to : /usr/lib/mozilla/plugins

Once in that directory (in terminal, as root), type: ln -s /usr/java/java-1.6.0-sun-1.6.0.21/jre/lib/i386/libnpjp2.so



Like I posted above, that's what knudfl instructed, and it worked like a charm.
Thanks for help, its done. Just for me path is different.
ln -s /usr/java/jdk1.6.0_21/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
 
Old 09-28-2010, 09:51 AM   #11
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
When ever i try to work with java plugin added up in mozzila plugin, firefox crashes with message or warning.
now i have removed java plugins and working. Iam using Mozilla Firefox 1.5.0.12.
what could be the possible error?
 
Old 10-17-2010, 02:39 AM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by adenial View Post
When ever i try to work with java plugin added up in mozzila plugin, firefox crashes with message or warning.
now i have removed java plugins and working. Iam using Mozilla Firefox 1.5.0.12.
what could be the possible error?
Read the error message? Also, why are you using such an outdated version of Firefox?
 
Old 10-18-2010, 10:35 PM   #13
aries2010
LQ Newbie
 
Registered: Oct 2010
Location: Zambales, Philippines
Distribution: Mandriva, Suse, Ubuntu, Centos, Maemo, Omnia Xp
Posts: 16

Rep: Reputation: -3
try this screenshot

see
tnx
Attached Thumbnails
Click image for larger version

Name:	java installation.jpg
Views:	21
Size:	55.9 KB
ID:	4900  
 
0 members found this post helpful.
Old 10-21-2010, 08:24 AM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by aries2010 View Post
try this screenshot

see
tnx
Spell out your words. And what was that screenshot supposed to do/fix for the OP??

You do realize that just changing your LQ name, and still continuing to post bad advice/questions, will get you ANOTHER bad reputation on this name too, don't you?
 
1 members found this post helpful.
Old 10-23-2010, 03:47 AM   #15
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
adenial,

Well, this post of mine is not related to Java installation but in fact I was curious to know what you are trying to achieve !

Previously you tried to install and learn C,
Then you tried to install Python,
Now you are trying to install Java,

If you are doing all this for someone else, then I have no issues but if you are doing this for yourself, then I doubt that you'll soon become - jack of all and master of none !

Programming languages are not some kind of software which you will install and then test whether it is working properly and then move on to another.

I suggest that you first read up on all programming languages and then decide which one satisfies your need.

Other people following the thread can check OP's thread creation history, if desired, WRT this post of mine.
 
  


Reply



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
Installing Java Based Application throws "java.lang.NoClassDefFoundError" ConfigMan_08 Linux - Newbie 10 12-22-2008 04:58 PM
Problem with "chmod" command installing java applet grandmarkai Mandriva 1 05-01-2006 06:00 PM
Problem in installing java in "Red Hat Enterprise Linux ES release 4" raajesh_ak Linux - Newbie 2 12-27-2005 03:55 AM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM
I cannot use "java chat". Browser says plugin required "x-java-vm". jdruin Linux - Software 4 04-18-2004 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:23 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
Open Source Consulting | Domain Registration