Page 1 of 3

Tip: Build your own Java Oracle module

Posted: 09 Apr 2014, 18:54
by Slaxmax
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

Re: Tip: Build your own Java Oracle module

Posted: 09 Apr 2014, 21:41
by alexandre-samuel
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

Re: Tip: Build your own Java Oracle module

Posted: 09 Apr 2014, 22:00
by Slaxmax
Follow tip. Don't use rpm version.

Re: Tip: Build your own Java Oracle module

Posted: 10 Apr 2014, 16:49
by Ed_P
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:

Re: Tip: Build your own Java Oracle module

Posted: 10 Apr 2014, 23:49
by francois
Slaxmax is becoming the java expert. 8)

Re: Tip: Build your own Java Oracle module

Posted: 12 Apr 2014, 03:38
by Slaxmax
Image

Re: Tip: Build your own Java Oracle module

Posted: 17 Apr 2014, 21:48
by Ed_P
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:

Re: Tip: Build your own Java Oracle module

Posted: 25 Apr 2014, 13:04
by Obosan
@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.

Re: Tip: Build your own Java Oracle module

Posted: 25 Apr 2014, 13:45
by francois
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.

Re: Tip: Build your own Java Oracle module

Posted: 25 Apr 2014, 15:14
by Obosan
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.

Re: Tip: Build your own Java Oracle module

Posted: 25 Apr 2014, 15:35
by francois
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?

Re: Tip: Build your own Java Oracle module

Posted: 25 Apr 2014, 16:49
by Obosan
@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

Re: Tip: Build your own Java Oracle module

Posted: 21 Dec 2014, 05:59
by Ed_P
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?

Re: Tip: Build your own Java Oracle module

Posted: 21 Dec 2014, 10:52
by tome
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.

Re: Tip: Build your own Java Oracle module

Posted: 21 Dec 2014, 14:14
by Ed_P

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