LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Open Office and Java problem (https://www.linuxquestions.org/questions/linux-software-2/open-office-and-java-problem-546887/)

Unr3a164 04-17-2007 06:32 PM

Open Office and Java problem
 
I am having a hard time getting Java to work in Mozilla. I download it, I install it, and create the symbolic link to the *.so file that i need to, and Mozilla still does not recognize Java.

I am also having a problem installing Open Office. Here is the error I get:

bt RPMS # rpm -Uvih *rpm
error: Failed dependencies:
/bin/basename is needed by jre-1.6.0-fcs
/bin/cat is needed by jre-1.6.0-fcs
/bin/cp is needed by jre-1.6.0-fcs
/bin/gawk is needed by jre-1.6.0-fcs
/bin/grep is needed by jre-1.6.0-fcs
/bin/ln is needed by jre-1.6.0-fcs
/bin/ls is needed by jre-1.6.0-fcs
/bin/mkdir is needed by jre-1.6.0-fcs
/bin/mv is needed by jre-1.6.0-fcs
/bin/pwd is needed by jre-1.6.0-fcs
/bin/rm is needed by jre-1.6.0-fcs
/bin/sed is needed by jre-1.6.0-fcs
/bin/sort is needed by jre-1.6.0-fcs
/bin/touch is needed by jre-1.6.0-fcs
/usr/bin/cut is needed by jre-1.6.0-fcs
/usr/bin/dirname is needed by jre-1.6.0-fcs
/usr/bin/expr is needed by jre-1.6.0-fcs
/usr/bin/find is needed by jre-1.6.0-fcs
/usr/bin/tail is needed by jre-1.6.0-fcs
/usr/bin/tr is needed by jre-1.6.0-fcs
/usr/bin/wc is needed by jre-1.6.0-fcs
/bin/sh is needed by jre-1.6.0-fcs
/bin/sh is needed by openoffice.org-core10-2.2.0-9134

What is the problem, and how can I fix it? Thanks in advance.

Unr3a1

reddazz 04-17-2007 06:44 PM

The -i and -U flags are not meant to be used together when installing rpms. Anyway, what distribution are you running because from your output, it does not seem to be an rpm based distro (distros can have the rpm command but not use rpms by default). As for the mozilla issue, its difficult to know where the problem is without details on how you went about installing java and creating the symlink.

Electro 04-17-2007 07:04 PM

It seems to me that your PATH variable is NULL or empty. If you use su to be as root, try using "su -" instead.

You just need to do rpm -Uvh to install RPM files. Though using -U and -i together may not always work. The option -U will either install or upgrade, so it is useless to use -i anyways.

Unr3a164 04-17-2007 07:16 PM

I am sorry that I did not post what distro I am using earlier. It is BackTrack 2, whish is a variation of Slackware. Only distro I could find that works with my wireless card by default. I took out the i, and I still had the same error. What do you suggest I do? I could not find a non-RPM based version of Open Office. If there is one, please link it. Thanks for the fast replies.


Unr3a1

reddazz 04-17-2007 07:53 PM

You can get Slackware packages at linuxpackages.net.

Unr3a164 04-18-2007 01:40 AM

Thanks. I got the Slackware package for Open Office. Now, what about my Java problem? Like I said, I do everything I am supposed to do, but Mozilla does not recognize that the plugin is there.

reddazz 04-18-2007 04:09 AM

If you want help with the mozilla and java stuff, give precise details about what you did (and the paths of your java and mozilla/firefox), so that someone can try and troubleshoot the problem for you.

Unr3a164 04-21-2007 12:26 AM

I followed the instructions on the following website exactly:

http://java.sun.com/javase/6/webnote...all-linux.html

the paths for the programs are as follows:

/usr/lib/mozilla
/usr/local/java

What could be my issue?



Unr3a1

reddazz 04-21-2007 11:08 AM

Can you post the output of doing the following
Code:

#find / -name libjavaplugin_oji.so

Unr3a164 04-22-2007 04:26 PM

bt / # find / -name libjavaplugin_oji.so
find: Filesystem loop detected; `/mnt/hda4' has the same device number and inode as a directory which is 2 levels higher in the filesystem hierarchy.
/usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so
/usr/lib/java/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
/usr/lib/mozilla/plugins/libjavaplugin_oji.so
/usr/java/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so
/usr/java/jre1.6.0_01/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
/usr/local/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so
/usr/local/jre1.6.0_01/plugin/i386/ns7-gcc29/libjavaplugin_oji.so
/root/Desktop/jre1.6.0_01/plugin/i386/ns7/libjavaplugin_oji.so
/root/Desktop/jre1.6.0_01/plugin/i386/ns7-gcc29/libjavaplugin_oji.so

reddazz 04-23-2007 09:52 AM

The symlink should have been created by doing
Code:

#ln -s /usr/lib/java/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/.
If you did that, then I do not see why the plugin does not work.

Unr3a164 04-24-2007 04:27 PM

Well, it doesn't. Anything else it could be?


All times are GMT -5. The time now is 09:47 PM.