Tip: Build your own Java Oracle module

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Tip: Build your own Java Oracle module

Post#16 by tome » 22 Dec 2014, 18:20

It works for me. Find and execute jcontrol (Java Control Panel). Next set lower security level at Advanced tab (I don't remember which exactly option/s is/are important) and relaunch firefox :wink:

User avatar
Ed_P
Contributor
Contributor
Posts: 3148
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Tip: Build your own Java Oracle module

Post#17 by Ed_P » 22 Dec 2014, 22:59

Changing options in the Control Panel is ackward!! The window doesn't display the buttons at the bottom and it isn't resizable. :x

I enable the Use SSL 2.0 option, figured out which blue line at the bottom represented Accept then restarted Firefox. It still errors out. :wall:
Ed

tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Tip: Build your own Java Oracle module

Post#18 by tome » 23 Dec 2014, 18:02

Maybe something wrong in java-builder? :unknown:
My steps were:
1. Download jre-8u25-linux-x64.tar.gz
2. Extract somewhere.
3. Make link by moving (Ctr + Shift + mouse move) libnpjp2.so to /usr/lib/mozilla/plugins (open pcmanfm as root)

User avatar
Ed_P
Contributor
Contributor
Posts: 3148
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Tip: Build your own Java Oracle module

Post#19 by Ed_P » 23 Dec 2014, 18:54

tome wrote:3. Make link by moving
Make link! Image

Image
tome wrote:cp -s /path/to/libnpjp2-$arch.so /usr/lib/mozilla/plugins/
Ed_P wrote:

Code: Select all

root@porteus:/home/guest# cp /usr/lib64/java/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
:oops:

Found the problem. Now it works.

Code: Select all

root@porteus:/home/guest# cp -s /usr/lib64/java/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
I didn't enter the "-s" when I did the "cp" command you gave me. Image

Thanks for sticking with me on this tome. :beer:


Just to confirm, the file I used is the "/path/to/libnpjp2-$arch.so" you referred to? I'm not sure what you're referring to with the "$arch" part.
Ed

tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Tip: Build your own Java Oracle module

Post#20 by tome » 23 Dec 2014, 19:04

I'm not sure what you're referring to with the "$arch" part.
I have my links renamed and I forgot correct name. My mistake and wrong info for you. :good:

tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Tip: Build your own Java Oracle module

Post#21 by tome » 10 Feb 2015, 08:08

@Slaxmax
Suggestion
Add to your script:
1.

Code: Select all

ln -sf /usr/lib64/mozilla/plugins/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
if [ "$JAVA_ARCH" = "x64" ], because firefox-x86_64 doesn't see java in lib64, it uses /usr/lib/mozilla/plugins.

2. And question: Now I will build module, it may take 3-5 minutes, proceed?

User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: Tip: Build your own Java Oracle module

Post#22 by Slaxmax » 25 Mar 2015, 15:27

update script
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
Ed_P
Contributor
Contributor
Posts: 3148
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Tip: Build your own Java Oracle module

Post#23 by Ed_P » 25 Mar 2015, 16:25

Slaxmax wrote:EDIT: update script 25/03/2015
Thank you. :good: :beer:

Java is one of the 3 modules I seem to be updating regularly lately. The other two being Flash and Firefox.
Ed

User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: Tip: Build your own Java Oracle module

Post#24 by Slaxmax » 05 Apr 2015, 00:22

update
now with GUI interface
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

ren3gade

Re: Tip: Build your own Java Oracle module

Post#25 by ren3gade » 19 May 2015, 15:51

Im on Ubuntu, and its saying that javabuilder is not a known command. I am in need of updated java 8 module for my Kiosk. I think I also need an updated version of flash to get my interactive page to work 100% correctly. It's odd. On my webpage i need for my kiosk, it works fine if i zoom in or out. But on the default zoom, it causes problems.

User avatar
Ed_P
Contributor
Contributor
Posts: 3148
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Tip: Build your own Java Oracle module

Post#26 by Ed_P » 02 Jun 2015, 15:59

ren3gade wrote:Im on Ubuntu, and its saying that javabuilder is not a known command.
java-builder is a script module that is downloaded from the link in the opening post of this thread. It may require being run on Porteus.

Slaxmax, I recently built the jre-8u45-x86_64-1.xzm module using the new GUI java-builder and its java doesn't work with firefox. I get a "A plugin is needed to display this content". I see that in the /usr/lib/mozilla/plugins directory there is a libnpjp2.so link to the /usr/lib64/java module so not sure what the problem is.




:%)

Now when I boot using an older jre-8u31-x86_64-1.xzm module I get an error msg in firefox stating "This plugin is vulnerable and should be updated" AND I have NO /usr/lib/mozilla directory. :unknown:

BTW My firefox is ESR 31.7.0 if that helps.
Ed

User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: Tip: Build your own Java Oracle module

Post#27 by Slaxmax » 02 Jun 2015, 16:38

Hi Ed_P

I have installed java Version 8 Update 45, with firefox 38.0.1 in KDE4-x64 and works fine java plugin.
Test the builder in always fresh.

Verify installed java plugin here
https://www.java.com/en/download/installed.jsp
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

User avatar
Ed_P
Contributor
Contributor
Posts: 3148
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Tip: Build your own Java Oracle module

Post#28 by Ed_P » 02 Jun 2015, 17:02

Slaxmax wrote:I have installed java Version 8 Update 45, with firefox 38.0.1 in KDE4-x64
I'm using the firefox version from USM in RazorQT x64.
Verify installed java plugin here
https://www.java.com/en/download/installed.jsp
"We are unable to verify if Java is currently installed and enabled in your browser."

Java shows up in the Porteus Preferences menu and the Control Panel Security tab shows that the Enable Java in the browser option is checked.

In firefox's about:addons' Plugins tab there is only Shockwave Flash and VLC web plugins showing. No jre.







-update-

If I disable the firefox 31.7.0 module the java plugin works with the older firefox 31.0 version in 04-firefox.xzm.
Ed

tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Tip: Build your own Java Oracle module

Post#29 by tome » 02 Jun 2015, 19:36


User avatar
Ed_P
Contributor
Contributor
Posts: 3148
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Tip: Build your own Java Oracle module

Post#30 by Ed_P » 02 Jun 2015, 19:53

Unfortunately no.
Ed_P wrote: I see that in the /usr/lib/mozilla/plugins directory there is a libnpjp2.so link to the /usr/lib64/java module so not sure what the problem is.
It appears that the 31.7.0 firefox uses a SeaMonkey lib rather than a mozilla lib. Maybe the link needs to be put in one of them but I don't see a plugin directory.
Ed

Post Reply