LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-24-2005, 08:21 PM   #1
The Stranger
Member
 
Registered: Feb 2005
Location: Canada
Distribution: SUSE 9.3 now using Ubuntu 14.04
Posts: 62

Rep: Reputation: 15
Trouble installing Java


I am trying to install the java plugin for Firefox browser and having a devil of a time doing it. I am new to all this and am trying to follow the instructions, but I keep hitting a wall.

I have unpacked the files into a directory and now wish to make a link from that directory to the firefox plugin directory but I keep getting this error:

bash: In: command not found

what does this mean and how can I fix it?

-TS-
 
Old 04-24-2005, 08:45 PM   #2
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
The command is ln. As in 'el en'
 
Old 04-25-2005, 10:44 AM   #3
The Stranger
Member
 
Registered: Feb 2005
Location: Canada
Distribution: SUSE 9.3 now using Ubuntu 14.04
Posts: 62

Original Poster
Rep: Reputation: 15
Hey thanks, boy do I feel kinda dumb.

So I tried to I guess "soft link" libjavaplugin_oji.so from the one directory to the other and this is the message that I get:

ln: invalid option -- /

what does this mean?

-TS-
 
Old 04-25-2005, 12:20 PM   #4
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
Your going to have to post the exact command you typed for anyone to help
 
Old 04-25-2005, 12:55 PM   #5
The Stranger
Member
 
Registered: Feb 2005
Location: Canada
Distribution: SUSE 9.3 now using Ubuntu 14.04
Posts: 62

Original Poster
Rep: Reputation: 15
Oh geeze sorry about that.

Okay the issue that I have is that I want to link a file from one directory to another and it was suggested that I do it this way:

ln -s/home/<username>/firefox-installer/plugins/j2re.1.4.2_08/plugin/i386/ns610-gcc32/libjavaplugin_oji.so `/home/<username>/.mozilla/plugins/libjavaplugin_oji.so

now initially I was getting:

ln: invalid option -- /

Now I just get:

> on the left side.

It does not appear to be making a link to the requested folder. Is my syntax wrong?

-TS-
 
Old 04-25-2005, 01:45 PM   #6
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
Quote:
Originally posted by The Stranger
Oh geeze sorry about that.

Okay the issue that I have is that I want to link a file from one directory to another and it was suggested that I do it this way:

ln -s/home/<username>/firefox-installer/plugins/j2re.1.4.2_08/plugin/i386/ns610-gcc32/libjavaplugin_oji.so `/home/<username>/.mozilla/plugins/libjavaplugin_oji.so

-TS-
You need a space between the -s and the / at the beginning: ln -s /home

There appears to be an apostrophe before /home in the second line which you don't need. Assuming the libjavaplugin_oji.so is actually in your .mozilla/plugins folder, this looks like it will work. I'm using SUSE 9.2 and this plug in is in my /usr/java directory.
 
Old 04-25-2005, 02:35 PM   #7
The Stranger
Member
 
Registered: Feb 2005
Location: Canada
Distribution: SUSE 9.3 now using Ubuntu 14.04
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks for the help!

This might be a silly question but from what you can read above, is it linking a file from the firefox-installer/plugins to ./mozilla/plugins? That is what I am trying to do. I looked in my Java directory and there was nothing in it.

I will try your suggestion when I get home. I know the directories look a little funny. I am used to windows doing all the work for me and am still trying to figure out where things go. When I installed firefox, it just created a folder in my /home/username directory. I also had to install it in root as well so that I could use it. If I were to install it as /root, would I put it in the /usr/local directory so that all accounts could use firefox?

Thanks again
-TS-
 
Old 04-25-2005, 04:05 PM   #8
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
I'm not sure why you needed to install Firefox as user and root. I only installed it as user in /home. The link for java needs to go from the directory with libjavaplugin_oji.so to the firefox plugins directory. So first you're going to have to find libjavaplugin_oji.so. You can use the locate or whereis command to help you find it. On my system the link looks like this:

ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.so /home/username/firefox-installer/plugins/libjavaplugin_oji.so
 
Old 04-25-2005, 09:45 PM   #9
The Stranger
Member
 
Registered: Feb 2005
Location: Canada
Distribution: SUSE 9.3 now using Ubuntu 14.04
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks again for the help. I tried it out and it seemed to work, however, java still does not work when I try it on the net.

Could it be that FF looks for it elsewhere? I will try and add a link in the java folder like yours.

-TS-
 
Old 05-09-2005, 09:01 PM   #10
dwrose
LQ Newbie
 
Registered: Mar 2005
Location: Massachusetts
Distribution: SuSE Linux 10.0
Posts: 19

Rep: Reputation: 0
OK, I just figured out how it works. Note, I have SuSE Professional 9.2, the box set. YMMV.

First, SuSE comes with Sun JVM 1.4.2, in fact Open Office is dependent upon that being loaded, so chances are you already have a Java virtual machine.

Second, you will need to explicitly select Java Plugin from the Software Installation, it doesn't come with the base jvm used for OpenOffice. Go to Yast and do a search on "java-1_4_2-sun-plugin", or just search on "plugin" and look at the results list carefully.

Third, just to make it confusing, if you are running YOU and update regularly (as you should), then you have probably updated the JVM and YaST doesn't like to install the older version of the java plugin to the patched JVM. So, what I did (and I'm sure there is a more straightforward way) was to downgrade java, install the java plugin (both from the DVD), then upgrade both.

Fourth, if you've been messing around trying to install Java, you probably have a bad link in your plugins directory. For Mozilla, look for a dead soft link in /opt/mozilla/lib/plugins. For Firefox, look for a dead link in /opt/MozillaFirefox/lib/plugins. In either case, delete it. You should also see a good link (since you have installed the Java plugin from SuSe, right?).

That's it. I'm sure you could be more efficient using an online source of packages to just add the latest patched plugin for your JVM. I have no idea what the story is with 9.3 or if you have the free download.

Good luck,

Dave Rose

Last edited by dwrose; 05-09-2005 at 09:05 PM.
 
Old 06-06-2005, 08:58 AM   #11
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
I am looking to use the RPM on Sun’s site to upgrade the Java on my SuSE (Java v1.4.2).

When I try to remove the package (RPM) with YaST the following comes up:

Code:
#### YaST2 conflicts list - generated 2005-06-05 19:32:30 ####

Deleting java-1_4_2-sun breaks other packages
    Required by:
        OpenOffice_org requires libjawt.so
        java-1_4_2-sun-alsa requires java-1.4.2-sun = 1.4.2.05-9
        java-1_4_2-sun-alsa requires libjava.so
        java-1_4_2-sun-alsa requires libjvm.so
        java-1_4_2-sun-jdbc requires java-1.4.2-sun = 1.4.2.05-9
        java-1_4_2-sun-plugin requires java-1.4.2-sun = 1.4.2.05-9
    Conflict Resolution:
        ( ) Do Not Delete java-1_4_2-sun
        ( ) Remove All 9 Referring Packages
            Delete OpenOffice_org-en-help
            Delete OpenOffice_org-kde
            Delete OpenOffice_org-gnome
            Delete OpenOffice_org-en
            Delete OpenOffice_org-Quickstarter
            Delete OpenOffice_org
            Delete java-1_4_2-sun-alsa
            Delete java-1_4_2-sun-jdbc
            Delete java-1_4_2-sun-plugin
        ( ) Ignore Conflict and Risk System Inconsistencies

#### YaST2 conflicts list END ###
If I just try to add the Java 1.5 RPM without removing the previous version, the following is what YaST tells me:

Code:
#### YaST2 conflicts list - generated 2005-06-05 19:31:18 ####

jre 1.5.0_02-fcs conflict
    Conflicts with:
        java-1_4_2-sun-alsa requires java-1.4.2-sun = 1.4.2.05-9
        java-1_4_2-sun-jdbc requires java-1.4.2-sun = 1.4.2.05-9
        java-1_4_2-sun-plugin requires java-1.4.2-sun = 1.4.2.05-9
        java-1_4_2-sun-alsa requires libjava.so
        OpenOffice_org requires libjawt.so
        java-1_4_2-sun-alsa requires libjvm.so
    Conflict Resolution:
        ( ) Do Not Update jre
        ( ) Remove All 9 Conflicting Packages
            Delete java-1_4_2-sun-plugin
            Delete OpenOffice_org-en-help
            Delete OpenOffice_org
            Delete OpenOffice_org-kde
            Delete OpenOffice_org-gnome
            Delete OpenOffice_org-en
            Delete java-1_4_2-sun-jdbc
            Delete OpenOffice_org-Quickstarter
            Delete java-1_4_2-sun-alsa
        ( ) Ignore Conflict and Risk System Inconsistencies

#### YaST2 conflicts list END ###
Please help
 
Old 06-06-2005, 12:08 PM   #12
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
You should be able to upgrade java through YOU.
 
Old 06-06-2005, 01:36 PM   #13
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
What is YOU, where can I find it and how do I use it?
 
Old 06-06-2005, 01:38 PM   #14
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Just figured out it is YaST Online Update
 
Old 06-13-2005, 03:26 AM   #15
xgm
Member
 
Registered: Feb 2005
Location: Sitges, Earth
Distribution: MDV2005LE, 2006 rc2
Posts: 58

Rep: Reputation: 15
I just installed Java 1.5.0_02 in9.2 from the konsole, just following the Java site instructions . Note that for the plugin to work , the syntaxis must be pretty accurate:
-put a space after the "ln -s "
-write all the name:"jre1.5.0_02"
-after "_oji.so" make "space-dot".

Did it work?
 
  


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
Having trouble installing java... broham Linux - Newbie 2 11-10-2004 07:16 PM
Trouble installing Java VM on FC2, Mozilla 1.7.2 Sovetskeey Linux - Newbie 3 09-09-2004 10:53 PM
Trouble installing JAVA - Mandrake 10 - Help tcn03u Mandriva 5 07-19-2004 11:36 AM
trouble installing java plugin on mozilla 1,7c joe83 Slackware 2 06-08-2004 02:35 PM
trouble installing java plugin on mozilla 1,7c joe83 Slackware 1 05-12-2004 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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