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...
User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Tip: Build your own Java Oracle module

Post#1 by Slaxmax » 09 Apr 2014, 18:54

EDIT: update script 03/06/2015

Build your own java oracle module
Now with GUI interface

Java plugin only works in firefox (NPAPI)
Chrome, Chromium and Opera use (PPAPI) not supported in java oracle yet.

steps
A - download the XZM java builder module and active
http://www.mediafire.com/download/74e9z ... noarch.xzm

B - dowload latest java oracle tar.gz file
http://www.java.com/en/download/linux_manual.jsp

see...
choose 2nd option if your system is i486 (x86)
choose 3rd option if your system is x86_64 (x64)
Image

To make java module
Open java builder application in system tab or open in terminal
example

Code: Select all

guest@porteus:~$ javabuilder
Last edited by Slaxmax on 03 Jun 2015, 17:12, edited 9 times in total.
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

alexandre-samuel
Black ninja
Black ninja
Posts: 35
Joined: 05 Apr 2014, 02:06
Distribution: Porteus
Location: Brazil

Re: Tip: Build your own Java Oracle module

Post#2 by alexandre-samuel » 09 Apr 2014, 21:41

I have installed Porteus 64bit in my hd.

I did the following method:

1) Download the jdk-8-linux-x64.rpm

2) rpm2xzm jdk-8-linux-x64.rpm

3) Move the (jdk-8-linux-x64.xzm) genereted .xzm file to /mnt/sda1/porteus/modules

4) Open terminal and login as root

5) In the terminal type: cd /mnt/sda1/porteus/modules

6) And type: activate jdk-8-linux-x64.xzm

Why when i type the command line "java -version", in the terminal, appears the following messagem ?

bash: java: command not found

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#3 by Slaxmax » 09 Apr 2014, 22:00

Follow tip. Don't use rpm version.
“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: 3423
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#4 by Ed_P » 10 Apr 2014, 16:49

Slaxmax wrote:Many peoples have had problems with java
Openjre or OpenJDK often cause problems and crashes.
I agree.
Extract the zip folder only. Do not extract the java
In the terminal login as root
then follow the example

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# cd /home/guest/java-builder 
root@porteus:/home/guest/java-builder# ./java.SlackBuild /home/guest/jre-7u51-linux-i586.tar.gz 
Ok, I Extracted the java-builder.zip file and did not Extract the the java jre-...gz file. When I Extracted the java-builder.zip file I got a java-builder folder. And in that folder I have another java-builder folder which in turn has the java.SlackBuild file. Do I need to move the java.SlackBuild files to the first java-builder folder?


--edit--
Ok, this appears to be working for me.

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# cd /home/guest/Downloads/java-builder/java-builder
root@porteus:/home/guest/Downloads/java-builder/java-builder# ./java.SlackBuild  /home/guest/Downloads/jre-7u51-linux-x64.tar.gz

Slackware package maker, version 3.14159.

Searching for symbolic links:
usr/lib64/libjvm.so -> ./java/lib/amd64/server/libjvm.so
usr/lib64/mozilla/plugins/libnpjp2.so -> /usr/lib64/java/lib/amd64/libnpjp2.so
usr/lib64/jre1.7.0_51 -> java

etc

etc

Slackware package /tmp/jre-7u51-x86_64-1.txz created.

Verifying package jre-7u51-x86_64-1.txz.
Installing package jre-7u51-x86_64-1.txz:
PACKAGE DESCRIPTION:
# Java(TM) 2 Platform Standard Edition Runtime Environment.
#
# The J2SE(TM) Runtime Environment (JRE) is intended for software
# developers and vendors to redistribute with their applications.
# It contains the Java virtual machine, runtime class libraries, and
# Java application launcher that are necessary to run programs written
# in the Java programming language.
#
Executing install script for jre-7u51-x86_64-1.txz.
Package jre-7u51-x86_64-1.txz installed.

Creating /tmp/tmp4264/jre-7u51-x86_64-1.xzm

root@porteus:/home/guest/Downloads/java-builder/java-builder# 
Unfortunately no jre-7u51-x86_64-1.xzm

Code: Select all

root@porteus:/home/guest/Downloads/java-builder/java-builder# ls /tmp
package-java/                 qtsingleapp-qlippe-2dfb-3e8-lockfile
qtsingleapp-qlippe-2dfb-3e8=  spacefm-guest-15abc78a.tmp/
root@porteus:/home/guest/Downloads/java-builder/java-builder# ls /tmp/package-java
etc/  install/  usr/root@porteus:/home/guest/Downloads/java-builder/java-builder# 
:(

Found it!! :Yahoo!: The .xzm module is indeed in /home/guest/.

AND does indeed work on all the java sites I visit. Still no sound but definitely animation.

Thanks Slaxmax. :friends:
Ed

User avatar
francois
Contributor
Contributor
Posts: 5136
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

Re: Tip: Build your own Java Oracle module

Post#5 by francois » 10 Apr 2014, 23:49

Slaxmax is becoming the java expert. 8)
Carpe diem.

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#6 by Slaxmax » 12 Apr 2014, 03:38

Image
“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: 3423
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#7 by Ed_P » 17 Apr 2014, 21:48

Slaxmax, will you be developing a module for java 7.55?


- update -
Never mind. Your instructions and java-builder app work just fine with the new 7.55 Java version. :good:
Ed

User avatar
Obosan
Samurai
Samurai
Posts: 113
Joined: 28 Mar 2014, 17:02
Distribution: Porteus xfce 32BIT v3.0
Location: JAPAN

Re: Tip: Build your own Java Oracle module

Post#8 by Obosan » 25 Apr 2014, 13:04

@Slaxmax
Thank you for your great Tip. :Rose: Now Firefox works fine with Java!

Code: Select all

guest@porteus:~$ su
パスワード: 
root@porteus:~# cd /home/guest/Downloads/java-builder
root@porteus:/home/guest/Downloads/java-builder# ./java.SlackBuild /home/guest/Downloads/jre-7u55-linux-i586.tar.gz

Creating /tmp/tmp3225/jre-7u55-i586-1.xzm

DONE
go to /home/guest and see the module jre-7u55-i586-1.xzm
root@porteus:/home/guest/Downloads/java-builder# 
jre-7u51-linux-i586.tar.gz updated to jre-7u55-linux-i586.tar.gz

For next boot, is it better to move the module jre-7u55-i586-1.xzm to /porteus/modules folder?
Or is it OK to leave the file in /home/guest? Thank you for your attention.

User avatar
francois
Contributor
Contributor
Posts: 5136
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

Re: Tip: Build your own Java Oracle module

Post#9 by francois » 25 Apr 2014, 13:45

It has to be moved into /porteus/modules if you want it to be loaded at each bootup of the computer. It is the same for any other module. :wink:

However, if you want to use it only once in a while, the best place to put it is in the /porteus/optional folder. Though you will have to activate it manually or at bootup with the tab button and the load cheatcode.
Carpe diem.

User avatar
Obosan
Samurai
Samurai
Posts: 113
Joined: 28 Mar 2014, 17:02
Distribution: Porteus xfce 32BIT v3.0
Location: JAPAN

Re: Tip: Build your own Java Oracle module

Post#10 by Obosan » 25 Apr 2014, 15:14

Bonjour francois! Thanks for your prompt reply.
It is the same for any other module.
:good:
I got it! I moved it into the /porteus/optional folder as you kindly suggested.

Je vous remercie.

User avatar
francois
Contributor
Contributor
Posts: 5136
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus artix
Location: C'est l'hiver: la neige soudainement est là à Montréal.

Re: Tip: Build your own Java Oracle module

Post#11 by francois » 25 Apr 2014, 15:35

Bonjour Obosan,

DO ITASHIMASHITÉ

I would really like to be able to speak japaneese. But the thruth is that I do not. Were did you learn your french?
Carpe diem.

User avatar
Obosan
Samurai
Samurai
Posts: 113
Joined: 28 Mar 2014, 17:02
Distribution: Porteus xfce 32BIT v3.0
Location: JAPAN

Re: Tip: Build your own Java Oracle module

Post#12 by Obosan » 25 Apr 2014, 16:49

@francois
I learned it for 7 weeks in Vichy, France a long long time ago.
If you really want to study Japanese, I would be very pleased to teach you.
In exchange you teach me Linux and Porteus xfce. Isn't it a good idea? :D

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
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#13 by Ed_P » 21 Dec 2014, 05:59

Ok, I've done the downloads and built the java module, put it in my /mnt/sda/porteus3.1/Modules folder and rebooted but now I'm have trouble getting 3.1's Firefox to add it as a plugin. I've done the Tools > Add-ons > Plugins and it's not there. And if I click on a website's java app I get prompted to "Install plugin..." which gets me to a "Manual Install" option. The webpages at Mozilla don't help. What am missing?
Ed

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

Re: Tip: Build your own Java Oracle module

Post#14 by tome » 21 Dec 2014, 10:52

Activate your module, find libnpjp2-"installed-arch".so file, next try as root this:
cp -s /path/to/libnpjp2-$arch.so /usr/lib/mozilla/plugins/

and relaunch Firefox.

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
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#15 by Ed_P » 21 Dec 2014, 14:14

Code: Select all

root@porteus:/home/guest# cp /usr/lib64/java/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
root@porteus:/home/guest# 
Thanks tome. Firefox now has the plugin and says it's up todate. Unfortunately it also says "The Java plugin has crashed" when I tried to use it. :(

-edit-

Example webpage: http://www.classicdosgames.com/online/1duke.html
Ed

Post Reply