How to build the latest java jre sfs

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

How to build the latest java jre sfs

#1 Post by watchdog »

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

Code: Select all

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: Select all

cd /mnt/home
dir2sfs dir
Rename dir.sfs as jre-xxxx-i586.sfs.
Just done.
Last edited by watchdog on Thu 20 Mar 2014, 18:27, edited 1 time in total.

Fabio T
Posts: 90
Joined: Fri 31 Aug 2007, 20:33
Location: Italy

#2 Post by Fabio T »

Thanx watchdog, your suggestion was very useful, now also I can have an updated JRE !

User avatar
ThoriumBlvd
Posts: 159
Joined: Fri 04 Oct 2013, 09:04
Location: N.E. USA

Relative Link

#3 Post by ThoriumBlvd »

***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?
Last edited by ThoriumBlvd on Sat 04 Jan 2014, 19:56, edited 1 time in total.
[img]http://www.am3radio.us/image3.jpg[/img] . [img]http://www.am3radio.us/image4.jpg[/img]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#4 Post by musher0 »

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
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
ThoriumBlvd
Posts: 159
Joined: Fri 04 Oct 2013, 09:04
Location: N.E. USA

#5 Post by ThoriumBlvd »

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.
[img]http://www.am3radio.us/image3.jpg[/img] . [img]http://www.am3radio.us/image4.jpg[/img]

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#6 Post by watchdog »

@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.

gcmartin

#7 Post by gcmartin »

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

Hope this helps

User avatar
ThoriumBlvd
Posts: 159
Joined: Fri 04 Oct 2013, 09:04
Location: N.E. USA

#8 Post by ThoriumBlvd »

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.
[img]http://www.am3radio.us/image3.jpg[/img] . [img]http://www.am3radio.us/image4.jpg[/img]

gcmartin

#9 Post by gcmartin »

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

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

#10 Post by watchdog »

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.

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

Java jre1.8.0-i586

#11 Post by watchdog »

Read:

http://www.murga-linux.com/puppy/viewto ... 009#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/ ... index.html

In console type the following commands:

Code: Select all

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: Select all

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.

Post Reply