DIY - How to Install Java

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
playdayz
Posts: 3799
Joined: Fri 25 Apr 2008, 18:57

#21 Post by playdayz »

@ imnotrich, where those mary john's instructions (several messages above here) to the letter or mine? I could try to help if you could list what you did and what the results were for each step--that is, just for instance, did you get a java folder named jre-1.6.0_16 after you ran the java install? Were you able to run the java install, etc. There is an alternative to use one of the java.sfs files prepared by community members. I have used them in the past and they worked well. However, the only one a quick search turns up is java 1.6 update 14 by Wolf Pup; maybe someone will post an update. http://www.murga-linux.com/puppy/viewto ... 59&t=27341

imnotrich
Posts: 44
Joined: Sat 03 Jun 2006, 03:34
Location: Northern California
Contact:

diy's java install

#22 Post by imnotrich »

I don't recall who the original posters were, and because of how this forum is organized I doubt I'd be able to find them again easily.

One was a step by step procedure to download from Sun, folders to put it in, symlink creation and all.

Another was a script to run called install java.

After each procedure I went to various java test pages and they tell me it's not enabled in my browser, but seamonkey claims it is enabled.

I'm not adept enough to write these programs and scripts myself, I suppose given enough time I could learn but for those of us who need our computers to just work, tinkering should be kept to a minimum. Now that java is openly available I don't see why it's so difficult in so many distros, not just puppy but I'm getting a bit off topic.

mathew
Posts: 3
Joined: Tue 03 Nov 2009, 06:10

#23 Post by mathew »

Hello All
I am Mathew and i want to install Java so which tools to first download and how to install it please tell me and when i download the Java kit so its in the full version?
Thnaks

User avatar
playdayz
Posts: 3799
Joined: Fri 25 Apr 2008, 18:57

#24 Post by playdayz »

imnotrich and mathew, these DIY articles are for people who *like* to tinker ;-) and thereby understand what is going on underneath the surface. i think the instructions are something that anyone can follow though--no doubt there could be a learning curve. i suggest the instructions in the first article (which is mine) but someone else has added a different set--they both have the same purpose. I would suggest reading the whole first page of this forum in order to try to maximize learning if you continue to DIY. There is a lot to be said for things just working, I agree, and the best guess I have for that is wolf pup's java (link above). As I recall there are also some puplets that have java installed--those could be found by browsing or searching the forum category "Puppy Derivatives."

User avatar
xman
Posts: 144
Joined: Thu 24 Sep 2009, 06:31

#25 Post by xman »

Sun has published a new version of java. This 6u17 release contains fixes for one or more security vulnerabilities (http://java.sun.com/javase/6/webnotes/6u17.html).

:( So, I replaced excellent 6u16.pet by DIY-install of 6u17. Now seamonkey 1.1.18, firefox 3.5.5, Gooo 3.1.1 and Opera 10.01 are recognizing java-jre-6u17, but aTunes has gone. I did some dirty work with DIY-opera until it accepts DIY-java. Now it is time to wash my hands and wait for an excellent 6u17 pet. :D Aqualung included 4.31 is so nice music player that I can live for a while without aTunes.

User avatar
didik
Posts: 44
Joined: Mon 05 Jan 2009, 10:34
Location: Bandung, Indonesia
Contact:

#26 Post by didik »

I have jre-6u17-linux-i586.petrun on firefox-3.5.5.

It works on my Puppy 4.3.1

imnotrich
Posts: 44
Joined: Sat 03 Jun 2006, 03:34
Location: Northern California
Contact:

java diy

#27 Post by imnotrich »

Regards learning curve for those DIY guides, I'm fluent in English so that's not the issue. Following those well articulated steps verbatim did not solve my problem. There were no java pets or dot pups listed either.

Java, flash, misc. plug ins and a decent set of web fonts plus other basic functionality needs to be included in a distro or at least easily available.

Puppy has long neglected wifi encryption too. Works great with WEP, but my network is wpa2 and Puppy still does not support wpa2 tkip/aes out of the box.

If said distro is not intended for use on the web or a network then that's another story, in which case you might as well delete e-mail, browsers, modem and nic/wireless drivers.

Sorry this turned into a bit of a rant. I know Puppy represents an enormous amount of effort from many very talented people, but I wish the developers would focus on basic functionality and leave the obscure stuff for those who like to tinker.

User avatar
xman
Posts: 144
Joined: Thu 24 Sep 2009, 06:31

#28 Post by xman »

Nikukyu has uploaded jre-6u17 pet and sfs (http://koinunoesa.blog46.fc2.com/blog-entry-99.html). They are certainly very cool but they come too late for me because I have used two weeks half-diyded jre-6u17. This is very OK with aTunes 1.13.5 :D, seamonkey old, firefox 3.5.5 and opera 10.01.

My steps (Puppy 4.31-k2.6.25.16):
1. Install 6u14.pet (http://puppylinux.asia/tpp/bugs/java-1.6u14.pet).
2. Delete java folder from /usr.
3. Download jre-6u17-linux-i586.bin file (http://javadl.sun.com/webapps/download/ ... leId=35675).
4. Unpack jre-6u17-linux-i586.bin file to /usr (run ./jre-6u17-linux-i586.bin).
5. Rename new jre1.6.0_17 folder to java.
6. Configure browser if needed (java support for firefox, flock, iceape, icecat, iceweasel, mozilla, opera, and seamonkey).

mcewanw
Posts: 3169
Joined: Thu 16 Aug 2007, 10:48
Contact:

export java paths

#29 Post by mcewanw »

I found this useful. Allows the system to find the java bits and pieces whilst allowing you to install java outside your pupsave in:

From thread post: http://www.murga-linux.com/puppy/viewto ... 748#123133
GuestToo wrote: in /etc/profile.local, i have:

export JAVA_HOME=/usr/jre
export PATH=$PATH:$JAVA_HOME/bin

/usr/jre is a symlink to where i have Java installed ... /mnt/hda15/jre1.6.0_01/
EDIT: Since, as playdayz says, Openoffice finds java automatically if the folder is in /usr/java, it would probably better to change the above two lines in /etc/profile.local to:

Code: Select all

export JAVA_HOME=/usr/java
export PATH=$PATH:$JAVA_HOME/bin
and make /usr/java (instead of /usr/jre) a symlink to where you have java installed.

Note that Puppy 4.3.1, for example, doesn't include the file /etc/profile.local by default. You therefore need to create a blank text file /etc/profile.local and include the above lines (and make the above suggested symlink to where you have your java installation).
Puppy will automatically read the file /etc/profile.local on reboot.

In addition, if you then create a shell script called application_x-jar in ~/Choices/MIME-types you should be able to simply click on .jar files to execute them from ROX. The file application_x-jar should contain the likes of:

Code: Select all

#! /bin/sh
exec java -jar "$1"
[Note: I don't have java on my system at the moment, so I can't actually test the above code at the moment; I'm "guessing" the option -jar from memory.]

This uses the MIME-type mechanism to control the execution. See the following Howto on mime file type handling for an explanation of its operation:

http://www.murga-linux.com/puppy/viewto ... 990#363990

EDIT: An alternative to manually creating an application_x-jar script in ~/Choices/MIME-types is to right click on a jar file and set Run Action to:

Code: Select all

java -jar "$1"
[or: java -jar "$@" should be fine I think]

That action will automatically create a application_x-jar shell script in the folder ~/.config/rox.sourceforge.net/MIME-types
github mcewanw

User avatar
didik
Posts: 44
Joined: Mon 05 Jan 2009, 10:34
Location: Bandung, Indonesia
Contact:

#30 Post by didik »

xman wrote:Nikukyu has uploaded jre-6u17 pet and sfs (http://koinunoesa.blog46.fc2.com/blog-entry-99.html). They are certainly very cool but they come too late for me because I have used two weeks half-diyded jre-6u17. This is very OK with aTunes 1.13.5 :D, seamonkey old, firefox 3.5.5 and opera 10.01.

My steps (Puppy 4.31-k2.6.25.16):
1. Install 6u14.pet (http://puppylinux.asia/tpp/bugs/java-1.6u14.pet).
2. Delete java folder from /usr.
3. Download jre-6u17-linux-i586.bin file (http://javadl.sun.com/webapps/download/ ... leId=35675).
4. Unpack jre-6u17-linux-i586.bin file to /usr (run ./jre-6u17-linux-i586.bin).
5. Rename new jre1.6.0_17 folder to java.
6. Configure browser if needed (java support for firefox, flock, iceape, icecat, iceweasel, mozilla, opera, and seamonkey).
Why do you need 6u14.pet?

Just simple single click jre-6u17*.pet from rox to install and let pinstall.sh do symlinking, etc.

User avatar
xman
Posts: 144
Joined: Thu 24 Sep 2009, 06:31

#31 Post by xman »

didik wrote:Why do you need 6u14.pet? Just simple single click jre-6u17*.pet from rox to install and let pinstall.sh do symlinking, etc.
Considering time, I installed my half-diyded 6u17 security update two weeks ago. Updating takes about ten minutes. Rhetorical question: When you uploaded your 6u17 pet? :wink: (http://edwidianto.wordpress.com/2009/11 ... ppy-linux/)

Can you tell me some reason why change my well working 6u17 to strange one?

User avatar
didik
Posts: 44
Joined: Mon 05 Jan 2009, 10:34
Location: Bandung, Indonesia
Contact:

#32 Post by didik »

xman wrote:
didik wrote:Why do you need 6u14.pet? Just simple single click jre-6u17*.pet from rox to install and let pinstall.sh do symlinking, etc.
Considering time, I installed my half-diyded 6u17 security update two weeks ago. Updating takes about ten minutes. Rhetorical question: When you uploaded your 6u17 pet? :wink: (http://edwidianto.wordpress.com/2009/11 ... ppy-linux/)

Can you tell me some reason why change my well working 6u17 to strange one?
No reason :D

It's absolutely your freedom.

-eko didik widianto

rameshiyer

How to Install Java

#33 Post by rameshiyer »

I tried different method listed in the forum. However, fail to install Java either in Opera or Seamonkey. In sometimes, while testing through javatester.org, it says that java installed. However, while browsing the site, Java required to installed and site is not visible where Java Runtime required. ( I have full hdd with latest version java)

User avatar
QBall2U
Posts: 65
Joined: Thu 02 Apr 2009, 06:11
Location: Somewhere, USA
Contact:

Re: DIY - How to Install Java

#34 Post by QBall2U »

[quote="playdayz"]Java always seemed mysterious and frustrating to me, but no longer, probably because I have made so many mistakes at it. I just installed it without any script, pet, or sfs and if I can do it, then anyone can do it.

1. Download java from java.com. I prefer to download it to /mnt/home to conserve my ram. If you want the latest revision you can just click the big download button, and then select the “Linux (self-extracting file)

User avatar
xman
Posts: 144
Joined: Thu 24 Sep 2009, 06:31

#35 Post by xman »

Java jre-6u19-linux-i586.bin is available: http://javadl.sun.com/webapps/download/ ... leId=38654.

User avatar
xman
Posts: 144
Joined: Thu 24 Sep 2009, 06:31

Re: DIY - How to Install Java

#36 Post by xman »

[quote="playdayz"]5. Open the folder jre1.6.0_14/plugin/ i386/ns7/ and drag the libjavaplugin.oji to either /usr/lib/mozilla/plugins or /root/.mozilla/plugins and choose “Link (relative).

User avatar
xman
Posts: 144
Joined: Thu 24 Sep 2009, 06:31

#37 Post by xman »

xman wrote:Google researcher Tavis Ormandy has published details of a Java virtual machine bug that could be used to run unauthorized programs on a computer. The flaw affects all versions since Java SE 6 update 10 for Microsoft Windows and Linux (http://seclists.org/bugtraq/2010/Apr/80).

Many researchers are talking about serious Java bug, but Oracle don't consider this vulnerability to be critical, which could be a mistake on their part as that means it won't be patched until the next patch in the cycle is released – which should be around July.
It must be July now - or is it Christmas for Java users :wink:? Java jre-6u20-linux-i586.bin is available: http://www.java.com/en/.

Automate
Posts: 2
Joined: Fri 28 May 2010, 23:43

#38 Post by Automate »

Does this method work on 5.01? Is there an easier/better method on 5/Ubuntu Lucid?

User avatar
Nikukyu
Posts: 15
Joined: Mon 12 Oct 2009, 14:40
Location: Zipangu
Contact:

#39 Post by Nikukyu »

Hi,Guys.
I delayed making to "JAVA-6u21".

http://koinunoesa.blog46.fc2.com/blog-entry-182.html

It tries :D

hailpuppy
Posts: 73
Joined: Wed 28 Oct 2009, 07:49

#40 Post by hailpuppy »

Sigh!!! Finally an java jdk sfs for puppylinux!!!.. :)
There is very little to go to make puppy linux a complete programmers' os I guess..:)

Post Reply