






























sagirfahmid3 wrote:Like I said, I'll hafta make a prompt because your way doesn't work with the Firefox off Mozilla's site (manually installed).

grizzler wrote:sagirfahmid3 wrote:Like I said, I'll hafta make a prompt because your way doesn't work with the Firefox off Mozilla's site (manually installed).
Yes it does. I've used unkilbeeg's method for years with Mozilla's own Firefox. It works if you do it the proper way (i.e. using the alternatives system) and also if you simply create a link in /usr/lib/mozilla/plugins or /usr/lib/firefox/plugins.





Hi there. I hope you like this script. It is here to make life easier for those
who are having difficulty installing Java manually. As a noob myself at shell
scripting, I have kept this simple and straight forward to use.
Should you have any questions, or if the script fails to work,
please let me (sagirfahmid3) know. Also, feel free to improve upon this script
and don't forget to share it here!
Installation will now start. Do you want to proceed? (Y/N)
<Entering other keys will abort installation>Y
[sudo] password for simon:
mkdir: cannot create directory `java': File exists
mkdir: cannot create directory `64': File exists
Which UPDATE of Java version 7 are you installing? Type version # & press ENTER
This should be written on the tar.gz archive as jre7-u{#}-linux-x64.tar.gz
IMPORTANT NOTE: For Java updates between 4 to 9, please use 04,05...09 when prompted!
05
mv: cannot stat `/home/simon/jre1.7.0_05': No such file or directory
mkdir: cannot create directory `/home/simon/.mozilla/plugins': File exists
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package icedtea6-plugin is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
rm: cannot remove `/home/simon/.mozilla/plugins/libnpjp2.so': Permission denied
ln: failed to create symbolic link `/home/simon/.mozilla/plugins/libnpjp2.so': File exists
If the output below matches the version that you installed, all is well
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)
You can also check manually by opening Firefox and going to about:plugins
Yet another way to check your Java version is by going to http://www.java.com. Click 'Do I have Java?'
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)





sudo rm ~/.mozilla/plugins/libnpjp2.so
ln -s /opt/java/64/jre1.7.0_05/lib/amd64/libnpjp2.so ~/.mozilla/plugins/





grizzler wrote:Simon,
The line "rm: cannot remove `/home/simon/.mozilla/plugins/libnpjp2.so': Permission denied" suggests this particular item isn't owned by your user but by root. Useto remove, check the ownership of the directories .mozilla and ./mozilla/plugins (should be 'simon') and create a new symlink with
- Code: Select all
sudo rm ~/.mozilla/plugins/libnpjp2.so
- Code: Select all
ln -s /opt/java/64/jre1.7.0_05/lib/amd64/libnpjp2.so ~/.mozilla/plugins/


Users browsing this forum: No registered users and 8 guests