Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Jul 2014, 04:34
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO install Java the hard way
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
edoc


Joined: 07 Aug 2005
Posts: 4337
Location: Southeast Georgia, USA

PostPosted: Mon 01 Dec 2008, 16:08    Post subject:  

Before I do this I feel it is wise for me to ask ...

Is there anything about Seamonkey 1.1.13 (I did the upgrade from the stock 1.1.11) in a Puppy 4.11-Normal ext3 formatted Frugal install on a laptop that might cause these instructions to not apply (or need to be modified), please?

I always seem to have one or more variables unaccounted for which send(s) me off into an open-loop of confusion ... Rolling Eyes

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Mon 01 Dec 2008, 16:26    Post subject:  

Don't follow the above procedure, it is out of date. Instead follow the instructions below.
Last edited by Sit Heel Speak on Wed 11 Feb 2009, 04:02; edited 1 time in total
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Fri 19 Dec 2008, 01:29    Post subject:  

How to install Java Version 6 Update 11 on Puppy 4.11 for Seamonkey, as of December 18 2008. This also makes JavaScript available to Open Office.

1. Open ROX-Filer, up-arrow, usr, and see if folder /usr/java exists. If it doesn't create it:
Code:
mkdir /usr/java


2. Surf to www.sun.com and click the "Java" icon under the "Downloads" bar. When the "Java" button enlarges click "Download".
This takes me to http://www.java.com/en/download/index.jsp.

3. Click the "Free Java Download" button.

4. In the "Linux (self-extracting file) filesize: 19.23 MB" row, left-click "Linux (self-extracting file)" then "Save it to disk" and save it to /usr/java. On my 512 mbps ADSL connection the download, monitored by Download Manager, takes about 9 minutes.

5. Open in ROX-Filer /usr/java and right-click the icon of jre-6u11-linux-i586.bin, File 'jre-6u11-linux-i586.bin', slide mouse to right onto submenu, left-click on Permissions, left-click Yes to change permissions and make executeable.

6. Right-click-in-whitespace in the /usr/java ROX-Filer window, Window-->Terminal here.
Execute the installer:
Code:
./jre-6u11-linux-i586.bin


7. You will now see the License Agreement. Keep pressing Enter (or R) until you see
Do you agree to the above license terms? [yes or no]
Type "yes" (without quotes) then press Enter.
The binary unpacks to a subdir /usr/java/jre1.6.0_11

8. Issue
Code:
cd /usr/lib/seamonkey/plugins
rm libjavaplugin_oji.so
ln -s /usr/java/jre1.6.0_11/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
cd /usr/lib/mozilla/plugins
rm libjavaplugin_oji.so
ln -s /usr/java/jre1.6.0_11/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
cd /root/.mozilla/plugins/java
rm libjavaplugin_oji.so
ln -s /usr/java/jre1.6.0_11/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so


(actually, I'm not sure if all three of the above are required. Does anyone know which one(s) is/are necessary?)

9. In Seamonkey, Edit-->Preferences-->Advanced (click on the +)-->Scripts and Plugins
Check Enable JavaScript for Navigator and for Mail & Newsgroups,
click Advanced (the word Advanced) and check Enable Java.
Close Seamonkey.
Reboot the computer.

10. Restart Seamonkey.
Surf to www.sun.com, Java under Downloads, "Download", "Do I Have Java?", and you should see the
"Congratulations!
You have the recommended Java installed (Version 6 Update 11)."
notification.

11. Done.

Last edited by Sit Heel Speak on Thu 13 Aug 2009, 04:52; edited 3 times in total
Back to top
View user's profile Send private message 
nayi_mari

Joined: 09 Feb 2009
Posts: 5

PostPosted: Wed 11 Feb 2009, 02:43    Post subject:  

Thanks, SitHeelSpeak, for the very detailed HOWTO for installing Java. Unfortunately, I ran into the following error while executing the installer (step 6):
Code:
 inflating: jre-6u11-linux-i586.rpm 
rpm: invalid option -- v
BusyBox v1.8.2 (2007-11-30 09:20:42 GMT-8) multi-call binary

Usage: rpm -i -q[ildc]p package.rpm

Manipulate RPM packages

Options:
        -i      Install package
        -q      Query package
        -p      Query uninstalled package
        -i      Show information
        -l      List contents
        -d      List documents
        -c      List config files

 
Done.

So a .rpm file is being created, but the -v option is not recognized by puppy's 'rpm' command. I suing the rpm command manually, but had the following error:
Code:

sh-3.00# mkdir /usr/java
sh-3.00# rpm -i jre-6u11-linux-i586.rpm
rpm: cannot make dir ./etc: File exists
rpm: cannot make dir ./etc/.java: File exists
rpm: cannot make dir ./etc/.java/.systemPrefs: File exists
rpm: cannot make dir ./usr: File exists
rpm: cannot make dir ./usr/java: File exists
95127 blocks
sh-3.00# /usr/java/jre1.6.0_11/bin/java
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

so there's something going wrong with the installation. Could the problem be with Puppy's rpm command? I would appreciate any help in this regard, since Java is very important for me.
Cheers,
NM
Back to top
View user's profile Send private message 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Wed 11 Feb 2009, 03:56    Post subject:  

nayi_mari wrote:
inflating: jre-6u11-linux-i586.rpm
You don't want the 18.6 MB .rpm file, instead you want the 19.23 MB self-extracting (.bin) file immediately underneath the .rpm file. I erroneously wrote it was 19.18 MB in my instructions above. Corrected.
Back to top
View user's profile Send private message 
moncha

Joined: 14 Sep 2007
Posts: 24

PostPosted: Fri 20 Feb 2009, 14:08    Post subject:  

The file on Sun's site changed. I had to modify the code from:
Code:
ln -s /usr/java/jre1.6.0_11/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so

to:
Code:
ln -s /usr/java/jre1.6.0_12/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
Back to top
View user's profile Send private message 
moncha

Joined: 14 Sep 2007
Posts: 24

PostPosted: Fri 20 Feb 2009, 14:11    Post subject:  

For Firefox 3.03, after executing the installer, the code I used was:

Code:
cd /usr/lib/firefox/plugins
ln -s /usr/java/jre1.6.0_12/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so


Then I enabled Java in the Firefox Toolbar: Edit>Preferences>Content.
Back to top
View user's profile Send private message 
darwinev0lved

Joined: 29 Jul 2008
Posts: 83

PostPosted: Tue 20 Apr 2010, 07:29    Post subject: firefox 3.6 - needs different symlink  

OK this is more of an FYI for me - just so I've got it written down somewhere.

/opt/java/jre1.6.0_20/lib/i386/libnpjp2.so

is the file that needs symlinking to

/usr/lib/mozilla/plugins/
Back to top
View user's profile Send private message 
nickdobrinich

Joined: 05 Apr 2007
Posts: 77
Location: Cleveland OH USA

PostPosted: Mon 26 Apr 2010, 17:14    Post subject: Java on Firefox 3.6.3
Subject description: symlinks for Java on Firefox 3.6.3
 

Even Sun's Java site was unaware of the correct linking.
I found that (2) symlinks into Firefox plugins are now necessary.

Make symbolic links into /lib/firefox/plugins from:
/usr/java/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
AND
/usr/java/jre1.6.0_20/lib/i386/libnpjp2.so

Check that the Java plugin loaded in Firefox at: about:plugins
Back to top
View user's profile Send private message 
lisek


Joined: 14 Feb 2008
Posts: 78
Location: PL

PostPosted: Sun 09 May 2010, 15:48    Post subject:  

For FireFox:

Quote:
Make symbolic links into /lib/firefox/plugins from:
/usr/java/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
AND
/usr/java/jre1.6.0_20/lib/i386/libnpjp2.so


that's right.
small correction: "Make symbolic links into usr/lib/firefox/plugins...."
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Tue 11 Jan 2011, 04:22    Post subject:  

Little bit off-topic Rolling Eyes .
Script for installation of the -=jre-6u23-linux-i586.bin=-
Quote:

Install_JRE-6u23.sh
Code:

#!/bin/bash
#http://java.com/en/download/manual.jsp?locale=en&host=java.com
#
cd /tmp ;
curl -C - -O file:///mnt/sdb1/BIN_files/jre-6u23-linux-i586.bin ;
echo "a8367e4af4f81764c760f93fe2fc0538  jre-6u23-linux-i586.bin" > /tmp/md5sum_jre-6u23.txt ;
xmessage "`md5sum -c md5sum_jre-6u23.txt | cat`" ;
echo "ok" ;
chmod u+x jre-6u23-linux-i586.bin ;
cd /usr/lib ;
rxvt -e /tmp/jre-6u23-linux-i586.bin ;
echo "ok" ;
ln -s /usr/lib/jre1.6.0_23/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/ ;
ln -s /usr/lib/jre1.6.0_23/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/ ;
#For use of JAVA with SEAMONKEY web browser:
#/Edit/Preferences/Advanced/[*]Enable Java
#---------------------------------------
#For use of JAVA with OPERA web browser:
#/Tools/Preferences/Advanced/Content/[*]Enable Java/Java options/Java path:/usr/lib/jre1.6.0_23/lib/i386/
ln -s /usr/lib/jre1.6.0_23/bin/java /usr/bin/ ;
ln -s /usr/lib/jre1.6.0_23/bin/java /bin/ ;
echo "ok" ;
echo '#jre-6u23-linux-i586' >> /etc/profile ;
echo 'export JAVA_HOME=/usr/lib/jre1.6.0_23' >> /etc/profile ;
echo 'PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile ;
rm /tmp/md5sum_jre-6u23.txt ;
rm /tmp/jre-6u23-linux-i586.bin ;
xmessage 'JRE has been installed.'

Edit: 2011, oct 09.

Permissions for -=Install_JRE-6u23.sh=- were changed as shown:
Code:
cd /place_where_Install_JRE-6u23.sh_is_located ; chmod u+x Install_JRE-6u23.sh

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.


Last edited by postfs1 on Sat 08 Oct 2011, 23:25; edited 3 times in total
Back to top
View user's profile Send private message 
elpablo243

Joined: 20 Aug 2011
Posts: 3

PostPosted: Sat 20 Aug 2011, 15:20    Post subject:  Java Installation Error
Subject description: Response to my last post
 

I followed ROX back through /usr/local/bin/jre1.6.0_02/plugin/i386/ns7/libjavaplugin_oji.so and manually changed the link to /usr/lib/mozilla/plugins/libjavaplugins_oji.so where the faulty symbolic link was. this changed the icon to look like the others so i assume its working now, but when i asked java if it was installed it still said "error." the run action for this newly changed symbolic link is "$@" and i dont know if that is how it should be, its just what was made.

help!
Back to top
View user's profile Send private message 
elpablo243

Joined: 20 Aug 2011
Posts: 3

PostPosted: Sat 20 Aug 2011, 16:05    Post subject:  Java Installation Error
Subject description: Another Update
 

In the SeaMonkey browser i clicked help>about plugins and it lists "Java(TM) Plug-in 1.6.0_26-b03" at the very top, and it says it is completely enabled. however the Java website still claims that java is not working properly, and the site that i need java for is not loading, even though the bar at the bottom says "done"

why?!

thank you
Back to top
View user's profile Send private message 
banger0250


Joined: 12 Aug 2010
Posts: 44
Location: Rothwell,Brisbane,Qld,AU

PostPosted: Sat 29 Oct 2011, 19:28    Post subject: firefox java manually  

Go here and get the linux self extracting binary. And follow the instructions to install and run the self extractor.

http://www.java.com/en/download/help/linux_install.xml

Ok firsly locate your firefox/plugins DIR, and the java lib directory, my java was in /usr/java/jre1.6.0_29/lib/i386/.


if u are upgrading java remove the old symbolic link first.
To remove old symbolic link:
type cd <Firefox installation directory>/plugins
rm libjavaplugin_oji.so


Then the most important part is linking the java executable to the firefox plugin directory. My plugins DIR is at /usr/lib/firefox/plugins/ . You may have to google it or search for the directory if u installed firefox a different way. Just open up two instances of ROXfiler drag across the file to link and select symlink in RoXfiler.

_________________
Taking pup for a walk
Back to top
View user's profile Send private message MSN Messenger 
banger0250


Joined: 12 Aug 2010
Posts: 44
Location: Rothwell,Brisbane,Qld,AU

PostPosted: Sat 03 Dec 2011, 22:47    Post subject:  

I installed puppy with the pre-installed seamonkey and still found linking the same file to the mozilla plugins folder worked.
RECAP:
ln -s /usr/bin/jre1.6.0-29/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/

CORRECT ME IF THATS WRONG

_________________
Taking pup for a walk
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 2 of 3 [32 Posts]   Goto page: Previous 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1104s ][ Queries: 12 (0.0052s) ][ GZIP on ]