Script to install Java Runtime Environment

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

Script to install Java Runtime Environment

#1 Post by DaveS »

From time to time, there are requests on this forum asking how to install Java. I use this dotPUP. I cant remember where I got it from now, but it seems to be a direct link to the Java site, so it installs the latest version. Just download it and run it. It will install a java downloader for you and then install Java. There are onscreen prompts, I usually just accept the defaults, and it gives you the option to delete the installer when you have finished. Tip: you must scroll right to the bottom of the license agreement before it allows you to proceed with the installation. I have used it on 4.0, 4.1x, 4.2, and various NOP versions with total success. You must first install dotpuphandler to run it. Or you could try converting it to a .pet using puptopet
Attachments
java1506.pup
(6.66 KiB) Downloaded 843 times
Spup Frugal HD and USB
Root forever!

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#2 Post by Béèm »

I tried, but the dotpup installes the 5_06 and not the 6_13 which is the latest.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#3 Post by paulh177 »

GuestToo wrote this in 2005 by the looks of the code.
The URL for the Java version is hardcoded hence why it always picks up the older version.
This script installs a version of Java from the Sun site, then sets up the links and environmnent variables and plugins correctly (for Mozilla at least), and cleans up after itself.
Is there is a way to get the correct URL for the latest Java download package "on the fly" ? This script would then be really useful as a Puppy "builtin", and means we wouldn't have to rely on someone grabbing the latest Java and turning it into a dotpet or sfs; plus make life easier for those who feel unconfident about doing a more "manual" install.

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#4 Post by DaveS »

paulh177 wrote:GuestToo wrote this in 2005 by the looks of the code.
The URL for the Java version is hardcoded hence why it always picks up the older version.
This script installs a version of Java from the Sun site, then sets up the links and environmnent variables and plugins correctly (for Mozilla at least), and cleans up after itself.
Is there is a way to get the correct URL for the latest Java download package "on the fly" ? This script would then be really useful as a Puppy "builtin", and means we wouldn't have to rely on someone grabbing the latest Java and turning it into a dotpet or sfs; plus make life easier for those who feel unconfident about doing a more "manual" install.
That would be perfect
Spup Frugal HD and USB
Root forever!

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#5 Post by ttuuxxx »

DaveS wrote:
paulh177 wrote:GuestToo wrote this in 2005 by the looks of the code.
The URL for the Java version is hardcoded hence why it always picks up the older version.
This script installs a version of Java from the Sun site, then sets up the links and environmnent variables and plugins correctly (for Mozilla at least), and cleans up after itself.
Is there is a way to get the correct URL for the latest Java download package "on the fly" ? This script would then be really useful as a Puppy "builtin", and means we wouldn't have to rely on someone grabbing the latest Java and turning it into a dotpet or sfs; plus make life easier for those who feel unconfident about doing a more "manual" install.
That would be perfect
Well I updated to the latest release, Thats about the end of my skills. It works fine, just remember to enable java in seamonkey. Or seamonkey won't use it by default its disabled.
I just made it into a tar.gz package so all you do is extract it and run it.
hope that helps
ttuuxxx
Attachments
jre1.6.0_13-installer-1.tar.gz
(5.6 KiB) Downloaded 869 times
Last edited by ttuuxxx on Sun 26 Apr 2009, 02:53, edited 1 time in total.
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#6 Post by DaveS »

Thanks. I just downloaded it and will run it later. Will I gain anything upgrading over previous version I wonder...................
Spup Frugal HD and USB
Root forever!

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#7 Post by ttuuxxx »

DaveS wrote:Thanks. I just downloaded it and will run it later. Will I gain anything upgrading over previous version I wonder...................
usually security fixes and thats about it :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#8 Post by Béèm »

As Paulh177 remarks, ideally the script should connect to the sun site, look for the correct URL and use it. Easier to say then to do.

I found the place for the hardcoded URL and replaced with the correct one by going to the sun site manually.

Thanks to adapt the script.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
sikpuppy
Posts: 415
Joined: Sun 29 Mar 2009, 05:54

#9 Post by sikpuppy »

ttuuxxx wrote: I just made it into a tar.gz package so all you do is extract it and run it.
hope that helps
ttuuxxx
Why is this in the install script?

defaultbrowser http://www.bodo.com/javame.htm

I don't like that much.
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#10 Post by ttuuxxx »

sikpuppy wrote:
ttuuxxx wrote: I just made it into a tar.gz package so all you do is extract it and run it.
hope that helps
ttuuxxx
Why is this in the install script?

defaultbrowser http://www.bodo.com/javame.htm

I don't like that much.
I don't know it was in the first version, I only updated the SUN links, I didn't include that test page.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
sikpuppy
Posts: 415
Joined: Sun 29 Mar 2009, 05:54

#11 Post by sikpuppy »

Well the site sent the default anti-phishing tool (in FF3.x) into spasms when it tried to connect, it really should connect to the Java homepage IMHO.

*edit* http://java.com/en/download/installed.jsp is the official testing page.
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#12 Post by ttuuxxx »

sikpuppy wrote:Well the site sent the default anti-phishing tool (in FF3.x) into spasms when it tried to connect, it really should connect to the Java homepage IMHO.

*edit* http://java.com/en/download/installed.jsp is the official testing page.
ok I updated with this link, I don't have a anti-phising tool installed so I didn't have a issue, Thanks
http://www.java.com/en/download/help/testvm.xml
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
sikpuppy
Posts: 415
Joined: Sun 29 Mar 2009, 05:54

#13 Post by sikpuppy »

Thanks :-)

FYI http://safebrowsing.clients.google.com/ ... javame.htm

I think Google analytics is redirecting pages that use it's technology if they are abusing the same technology, possibly nothing to do with any filter I have.
ASUS A1000, 800Mhz PIII Coppermine!, 192Mb RAM, 10Gb IBM Travelstar HDD, Build date August 2001.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#14 Post by ecomoney »

A Firefox browser with Java already preinstalled and configured is available here, as a pet, an sfs and a pup_420.sfs:-

http://www.murga-linux.com/puppy/viewtopic.php?t=40497
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#15 Post by ttuuxxx »

ecomoney wrote:A Firefox browser with Java already preinstalled and configured is available here, as a pet, an sfs and a pup_420.sfs:-

http://www.murga-linux.com/puppy/viewtopic.php?t=40497
I think they should include this little updated installer puppy, How easy if it was located root, couple of clicks and boom its installed.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#16 Post by ecomoney »

Actually add it to puppy itself to download and install? Pretty easy...but a link via the install program would be easier to maintain (wouldnt be hard-burnt into cd's).

Have you seen this idea for an installer that would load via petget Ttuxx? Interested to know what you think.

http://www.murga-linux.com/puppy/viewtopic.php?t=41674
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#17 Post by ttuuxxx »

ecomoney wrote:Actually add it to puppy itself to download and install? Pretty easy...but a link via the install program would be easier to maintain (wouldnt be hard-burnt into cd's).

Have you seen this idea for an installer that would load via petget Ttuxx? Interested to know what you think.

http://www.murga-linux.com/puppy/viewtopic.php?t=41674
Well thats a double download, the size of the script is great and could be added, how I see it is basically the same model with some changes, when you click on it, it downloads a java.txt file from a server in the background, maybe a message popup 'Please wait getting the latest versions download location",maybe the repo or puppylinux.ca where I could update it at ca. This java.txt file would have the latest location for the download, that way it would be just a click and not a actual download install with petget, then find the script, then install. also puppy could remove Flash from the default release saving over 2MB compressed, and have a flash section, older release which we could have at the repo and latest version, where 1 click will download the Java.txt script and would have the flash info and java all in one.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#18 Post by ecomoney »

If seamonkey detected JAVA was needed (or wanted) on a page and ran the script automaticly to install it in puppy it would be even better.

Code: Select all

"This page requires the java plugin for some of its functions to work fully. Do you want to install this now? (Y/N)"
, possibly with a tickbox to say "dont ask me again"...I know a lot of people dont like having java installed because of security, or want to be bugged to install it all the time.

[/code]
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#19 Post by DaveS »

ttuuxxx wrote: I think they should include this little updated installer puppy, How easy if it was located root, couple of clicks and boom its installed.
ttuuxxx
I was kinda hoping something like this could happen. Please dont forget that Java is not JUST a browsing issue. Open Office also needs it if it is to be fully functional.
Spup Frugal HD and USB
Root forever!

User avatar
spongedaddy
Posts: 46
Joined: Wed 03 Jun 2009, 01:47
Location: Winter Park, FL
Contact:

#20 Post by spongedaddy »

My newbie $0.02:

Just installed MU's JRE 1.5.0_08 from the wiki and used dotpuphandler to install it (despite the "officially discouraged" line).

I checked my favorite Java-using beach cam, and everything is A-OK.

Post Reply