| Author |
Message |
Iguleder

Joined: 11 Aug 2009 Posts: 1613 Location: Israel, somewhere in the beautiful desert
|
Posted: Mon 17 Aug 2009, 12:33 Post subject:
[RC2] Automatic Java (JRE) Install Script Subject description: A script to automatically download and install the latest JRE |
|
INFO:
It's a simple script that downloads and runs the latest JRE, installs it and creates the right links. Nothing more, nothing less. No error handling or anything like that, it may erase important data, so use at your own risk. It's the first "release candidate", although I'm not "releasing" it, this version works as it should, it also installs the Mozilla browser plugin.
Tested on Firefox 3.5 and Puppy 4.2.1's default SeaMonkey.
It is recommended that you install to a partition (some /mnt, /mnt/home for instance), and NOT to your home folder.
- Make sure you don't have any files/folders named jre* or javainstaller.bin in the script's folder.
- You need lots of free space and RAM for Java applications. Not for very old PCs.
- You need a fast internet connection, it's a 20 MB download, and Sun's servers are not so fast (80-85 Kbps on my fast connection).
After installing Java, go to http://www.javatester.org/version.html to see if Java is installed correctly.
HOW TO USE IT:
If you saved it in /root: go to the console, run sh installjava.
If you saved in another directory (/x/y/z), run cd /x/y/z, then sh installjava.
It does everything for you, you just need to specify the installation location, scroll down using ENTER and accept the license by typing "yes".
DOWNLOAD
(btw, Puppy SHOULD include something similar, but that's just my opinion)
_________________ Shahor, my Puppy concept
Last edited by Iguleder on Tue 18 Aug 2009, 11:19; edited 4 times in total
|
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11782 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: Mon 17 Aug 2009, 14:19 Post subject:
|
|
Does the script also create the JAVA_HOME variable?
_________________ Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
|
|
Back to top
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: Mon 17 Aug 2009, 16:08 Post subject:
|
|
Flashplayer is waiting for you when you're ready.
_________________
ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_
<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Tue 18 Aug 2009, 00:15 Post subject:
|
|
Many thanks for trying to get this going
| Quote: | | After installing Java, run "java --version" in the console to see if Java is installed correctly |
This command should be java -version
In the browser goto edit / Preferences / Advanced
and enable the java option
I did that but this test
http://www.javatester.org/version.html
gave me
Browser has Java disabled
so maybe JAVA_HOME variable or something else required?
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 1613 Location: Israel, somewhere in the beautiful desert
|
Posted: Tue 18 Aug 2009, 06:03 Post subject:
|
|
Well ... you're right. I haven't checked the browser, because manual installation on other Linuxes didn't require any variables.
I'm currently rewriting the script ... I think I found the problem.
EDIT: updated the topic, now it works perfectly.
|
|
Back to top
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: Tue 18 Aug 2009, 09:53 Post subject:
|
|
there are issues with having the 100MB odd java folder in the pupsave. it is possible and desirable to have the big folder outside so that it doesn't slow loading and exit times every time. see
http://www.murga-linux.com/puppy/viewtopic.php?t=45244&sid=add71c622b5a280541f4d351c6ed2905.
i personally would use the manual install there unless you can duplicate it into automatic.
_________________
ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_
<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
|
|
Back to top
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 1613 Location: Israel, somewhere in the beautiful desert
|
Posted: Tue 18 Aug 2009, 10:53 Post subject:
|
|
I updated the script again, now it installs to /root ... should I change it to /mnt/home? Some users don't have /mnt/home (for example, users who boot from a CD).
EDIT: now it asks for the installation folder.
|
|
Back to top
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: Tue 18 Aug 2009, 11:43 Post subject:
|
|
| Iguleder wrote: | I updated the script again, now it installs to /root ... should I change it to /mnt/home? Some users don't have /mnt/home (for example, users who boot from a CD).
EDIT: now it asks for the installation folder. |
perhaps a selection process with a list of default locations. if you are to accommodate CD, frugal, and harddrive installs it makes it tricker. i only use frugal and so it is pup_saves that i know about. perhaps you will need feedback for/from the other user options.
_________________
ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_
<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Tue 18 Aug 2009, 15:22 Post subject:
|
|
| Quote: | | Some users don't have /mnt/home (for example, users who boot from a CD) |
I do that and I have that directory
I also now have java thanks to you
running in beta 1 Puppy 4.3
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: Tue 18 Aug 2009, 18:35 Post subject:
|
|
suggested improvement: making it more truly the latest available download with no additional future tweaking needed by using some sort of file handler that can pull the link from the webpage at the http://javadl.sun.com site. i know iit is possible to pull links out of web pages using php but i dont know if it is possible in/with the scripts you are using. so perhaps some intermediate http://elsewhere.com/webpage.php that gives the raw link maybe necessary. i can look into that part if you are unfamiliar with php or if it is not possible in your scripts.
_________________
ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_
<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
|
|
Back to top
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 1613 Location: Israel, somewhere in the beautiful desert
|
Posted: Wed 19 Aug 2009, 03:23 Post subject:
|
|
| aarf wrote: |
perhaps a selection process with a list of default locations. |
I think it would be best to add a list of locations, as you said, with notes about each one, for example: "/mnt /home - best choice for frugal installations", "/usr/lib - best choice for full installations" and "/root - best choice for live sessions".
| aarf wrote: | | suggested improvement: making it more truly the latest available download |
Here's the latest Java .bin download URL:
http://javadl.sun.com/webapps/download/AutoDL?BundleId=33223
I guess it remains the same with each new version, since each JRE bundle has a different ID.
|
|
Back to top
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: Sun 23 Aug 2009, 09:31 Post subject:
|
|
test your Java install at this free chess site
_________________
ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_
<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
|
|
Back to top
|
|
 |
|