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 Wed 16 Apr 2014, 04:17
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
[RC2] Automatic Java (JRE) Install Script
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1774
Location: Israel, somewhere in the beautiful desert

PostPosted: 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)

_________________
My homepage

Last edited by Iguleder on Tue 18 Aug 2009, 11:19; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: 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
View user's profile Send private message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: 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
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Tue 18 Aug 2009, 00:15    Post subject:  

Many thanks for trying to get this going Smile

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
View user's profile Send private message Visit poster's website 
Iguleder


Joined: 11 Aug 2009
Posts: 1774
Location: Israel, somewhere in the beautiful desert

PostPosted: 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
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: 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
View user's profile Send private message Visit poster's website 
Iguleder


Joined: 11 Aug 2009
Posts: 1774
Location: Israel, somewhere in the beautiful desert

PostPosted: 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
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: 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
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 Smile
running in beta 1 Puppy 4.3

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: 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
View user's profile Send private message Visit poster's website 
Iguleder


Joined: 11 Aug 2009
Posts: 1774
Location: Israel, somewhere in the beautiful desert

PostPosted: 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
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: 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
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0605s ][ Queries: 11 (0.0032s) ][ GZIP on ]