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 26 Nov 2014, 05:14
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to build the latest java jre sfs
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
watchdog

Joined: 28 Sep 2012
Posts: 639

PostPosted: Mon 24 Jun 2013, 00:02    Post_subject:  How to build the latest java jre sfs  

Perhaps it's the case to learn to build a java sfs. In console:

Code:
mkdir -p /mnt/home/dir/usr/local/java
mkdir -p /mnt/home/dir/usr/lib/mozilla/plugins


Download from:

http://java.com/it/download/linux_manual.jsp?locale=en

the latest .tar.gz java. Click on it to open the archive and extract all to /mnt/home/dir/usr/local/java. Create a relative link in /mnt/home/dir/usr/lib/mozilla/plugins/libnpjp2.so to /mnt/home/dir/usr/local/java/jre-xxxx/lib/i386/libnpjp2.so. To do this open two windows, one in /mnt/home/dir/usr/java/jre1.7.0_25/lib/i386 and another in /mnt/home/dir/usr/lib/mozilla/plugins. Then with the mouse "take" libnpjp2.so from the first window to the second and choose Relative Link in the menu that it open. Then in console:

Code:
cd /mnt/home
dir2sfs dir


Rename dir.sfs as jre-xxxx-i586.sfs.
Just done.

Edited_time_total
Back to top
View user's profile Send_private_message 
Fabio T

Joined: 31 Aug 2007
Posts: 90
Location: Italy

PostPosted: Sun 20 Oct 2013, 18:13    Post_subject:    

Thanx watchdog, your suggestion was very useful, now also I can have an updated JRE !
Back to top
View user's profile Send_private_message 
ThoriumBlvd


Joined: 04 Oct 2013
Posts: 154
Location: N.E. USA

PostPosted: Sat 04 Jan 2014, 09:22    Post_subject: Relative Link  

***EDIT***
Target "plugins": location is mnt/home/usr/lib/mozilla
File location is mnt/home/usr/local/jre1.7.0_15/lib/i386


When I open the two windows and move libnpjp2.so to the "plugins" folder...

Should I place the file next to the plugins directory, or in it? [solved... in it]

I have puppy slacko-55XL so I'm not sure about the last code snippet.
1.) This puppy HAS JRE1-7-15 already, just not linked in this fasion to the browser.
2.) Should I place this Java sfs file in my sfs file, and should I also use the save-sfs file ( the slacosave is in sda1 {SSD}, the pup-sfs is in sdb1 {USB} )

EDIT 2*** it appears that in th OP, a new structure was created, and then that structure was converted from a "folder" to an sfs file using dir2sfs command. Is that right?

_________________
.

Edited_time_total
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4339
Location: Gatineau (Qc), Canada

PostPosted: Sat 04 Jan 2014, 10:28    Post_subject:  

Hello.

Are you sure about the "locale" part in the URL you provided. I get good results with
http://java.com/fr/download/linux_manual.jsp
or
http://java.com/en/download/linux_manual.jsp

The locale being between "java.com" and "download". But maybe it does not matter.

Also, does your structure work ? The way I do it is different, I put the entire unpacked
java JRE in /opt with links from /opt/< java_JRE >/bin to ~/my-applications/bin.

Best regards. BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
ThoriumBlvd


Joined: 04 Oct 2013
Posts: 154
Location: N.E. USA

PostPosted: Sat 04 Jan 2014, 15:35    Post_subject:  

The puppy contained Java, I did not have to download it. These structure locations are where the two items "Plugins" directory, and the libnpjp2 file are located.. I could simply open two windows and make a relative link.

In terminal there was a change directory command with a rename of a directory. I might not need this. since I don't need terminal to accomplish the relative link. Very unsure here. seems to be an sfs file needed.

musher0:
I see why you do that as LibreOffice is placed there, and my slacko pup also locates java loaders there. To get both JRE/JVM and LO4 to play nice, that may be needed.

_________________
.
Back to top
View user's profile Send_private_message 
watchdog

Joined: 28 Sep 2012
Posts: 639

PostPosted: Sat 04 Jan 2014, 17:04    Post_subject:  

@ThoriumBlvd

I suggest to you to update your java for security reasons. Can you remove the built-in java? Menu-Setup-Remove built-in packages. Does it work for your puppy? Then follow my procedure in the first post to build an updated java sfs and load it.
Back to top
View user's profile Send_private_message 
gcmartin

Joined: 14 Oct 2005
Posts: 4441
Location: Earth

PostPosted: Sun 05 Jan 2014, 00:09    Post_subject:  

Should one check to see if the installed JAVA is equivalent or newer before following these steps?

Hope this helps

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
ThoriumBlvd


Joined: 04 Oct 2013
Posts: 154
Location: N.E. USA

PostPosted: Sun 05 Jan 2014, 01:01    Post_subject:  

My version 1.7.0_15 Apparent current update ends in 45. On the Tuesday before Jan 17, 2014 Oracle releases a Critical Update to manny items. It looks like Oracle would want me to toss and reinstall monthly on average. Thats quite the addiction.

BTW how do I toggle JAVA on/off? Presumed app from Firefox I think, I don't think its "native" anymore.

_________________
.
Back to top
View user's profile Send_private_message 
gcmartin

Joined: 14 Oct 2005
Posts: 4441
Location: Earth

PostPosted: Sun 05 Jan 2014, 01:19    Post_subject:  

Quote:
Dont know if JAVA is toggled on/off.
JAVA is a subsystem which is either available in your LInux (or any OS) or its subsystem has not been started. The SFS or PET or tar or some installation method was used to add JAVA to your running system. With your browser, a different means exist to allow Javascript to work with your browser.

Others more knowledgeable than I about JAVA can add more accurate information.

Hope this helps

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send_private_message 
watchdog

Joined: 28 Sep 2012
Posts: 639

PostPosted: Sun 05 Jan 2014, 03:10    Post_subject:  

ThoriumBlvd wrote:

BTW how do I toggle JAVA on/off? Presumed app from Firefox I think, I don't think its "native" anymore.


Probably you can remove the current plugin in the browser by simply deleting the symlink libnpjp2.so in /usr/lib/mozilla/plugins even if there are other ways to install the jre plugin (in /root/.mozilla for example): I don't know what way your puppy uses. Load the new java sfs 7u45. If you load the new java sfs 7u45 it should replace the symlink in /usr/lib/mozilla/plugins, if an old symlink there exists, with the new one.
Back to top
View user's profile Send_private_message 
watchdog

Joined: 28 Sep 2012
Posts: 639

PostPosted: Thu 20 Mar 2014, 12:06    Post_subject: Java jre1.8.0-i586  

Read:

http://www.murga-linux.com/puppy/viewtopic.php?p=766009#766009

Building the jre sfs is a little different. Download the linux jre 8 SE i586 tar.gz from:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

In console type the following commands:

Code:
mkdir -p /mnt/home/dir/usr/local/java
mkdir -p /mnt/home/dir/usr/lib/mozilla/plugins


Click on the jre-8-linux-i586.tar.gz to open the archive and extract all to /mnt/home/dir/usr/local/java. Create a relative link in /mnt/home/dir/usr/lib/mozilla/plugins/libnpjp2.so to /mnt/home/dir/usr/local/java/jre-1.8.0/lib/i386/libnpjp2.so. To do this open two windows, one in /mnt/home/dir/usr/java/jre1.8.0/lib/i386 and another in /mnt/home/dir/usr/lib/mozilla/plugins. Then with the mouse drag libnpjp2.so from the first window to the second and choose Relative Link in the menu that it open. Then in console:

Code:
cd /mnt/home
dir2sfs dir
mv dir.sfs jre1.8.0-i586.sfs


Testing your java requires the file /root/.java/deployment/security/exception.sites. Create it if not existing. Open that file with geany and paste the address of the site you use for testing and save.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0742s ][ Queries: 11 (0.0069s) ][ GZIP on ]