Java
Forum rules
Before you post, please read forum rules:
Software requests - How to
Tag [SOLVED] in topics
Before you post, please read forum rules:
Software requests - How to
Tag [SOLVED] in topics
- andre
- Utente junior
- Posts: 39
- Joined: 5 November 2011, 15:49
- OpenMandriva: 2010.2 (2010.3)
- Kernel: 3.2.20-nrj-desktop-1
- Desktop: kde4.8.4
- country: France
Java
Hello !
The script to install java from Oracle download build 1.6.0_30-b12 wich is obsolete and unstable whith firefox.
Can it be updated to download and install 1.7 version ?
The script to install java from Oracle download build 1.6.0_30-b12 wich is obsolete and unstable whith firefox.
Can it be updated to download and install 1.7 version ?
Ne lâchez rien.
André
André
Re: Java
Can you try to download and install Java 7 directly from the original Oracle site?
Now Oracle license does not permit to redistribuite Java, neither to install from a metapackage downloading binary from Oracle
New Java license is really very restrictive, the user must go to the Oracle site, accept license and download Java only in this way
The most LinuX Distro have already removed the presence of Java from their ISOs, and that's the ugly reason...
Now Oracle license does not permit to redistribuite Java, neither to install from a metapackage downloading binary from Oracle
New Java license is really very restrictive, the user must go to the Oracle site, accept license and download Java only in this way
The most LinuX Distro have already removed the presence of Java from their ISOs, and that's the ugly reason...
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.
--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.
--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL
- andre
- Utente junior
- Posts: 39
- Joined: 5 November 2011, 15:49
- OpenMandriva: 2010.2 (2010.3)
- Kernel: 3.2.20-nrj-desktop-1
- Desktop: kde4.8.4
- country: France
Re: Java
Thank you for information ! And damned Oracle.
As recommended by Oracle I intented install 32 bits version on a 64 bit platform to active java plugin in firefox (by creating a link between /usr/java/lib/... and mozilla plugin folder. I suppose (Oracle does not explain this point) I have to run a 32 bit version of firefox to do that because, with a 64 bit version, it does not run.
Curiously with java-1.6.0_30 (from the script) java plugin runs but it is not recommended.
I hate spending my time with such recurring details )
As recommended by Oracle I intented install 32 bits version on a 64 bit platform to active java plugin in firefox (by creating a link between /usr/java/lib/... and mozilla plugin folder. I suppose (Oracle does not explain this point) I have to run a 32 bit version of firefox to do that because, with a 64 bit version, it does not run.
Curiously with java-1.6.0_30 (from the script) java plugin runs but it is not recommended.
I hate spending my time with such recurring details )
Ne lâchez rien.
André
André
- viking
- Utente junior
- Posts: 80
- Joined: 26 July 2012, 18:43
- ROSA: Desktop Fresh R7 x64
- OpenMandriva: -
- Kernel: 4.1.18-nrjQL-desktop
- Desktop: KDE Plasma 5.5.4
- country: Serbia
Re: Java
Firefox is 64bit application in 64bit Mandriva (and Rosa), so why would you use 32bit Java with it?!andre wrote:Thank you for information ! And damned Oracle.
As recommended by Oracle I intented install 32 bits version on a 64 bit platform to active java plugin in firefox (by creating a link between /usr/java/lib/... and mozilla plugin folder. I suppose (Oracle does not explain this point) I have to run a 32 bit version of firefox to do that because, with a 64 bit version, it does not run.
Curiously with java-1.6.0_30 (from the script) java plugin runs but it is not recommended.
I hate spending my time with such recurring details )
I switched to Rosa and mostly use Google Chrome (from Google repository), but I still have Firefox and some things are still same in Rosa and Mandriva.
So, let's check few things:
Code: Select all
$ which firefox
/usr/bin/firefox
$ file /usr/bin/firefox
/usr/bin/firefox: symbolic link to `../../usr/lib64/firefox-14.0.1/firefox'
$ file /usr/lib64/firefox-14.0.1/firefox
/usr/lib64/firefox-14.0.1/firefox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, BuildID[sha1]=0xc1fa6e853dcf31121e49f0047c6c55d6c5b4bb97, stripped
Now let's try to open this with Firefox and check what I will get with my installed java:
http://www.java.com/en/download/installed.jsp
Code: Select all
Verified Java Version
Congratulations!
You have the recommended Java installed (Version 7 Update 5).
Code: Select all
$which java
/usr/bin/java
$ file /usr/bin/java
/usr/bin/java: symbolic link to `/usr/java/default/bin/java'
$ file /usr/java/default/bin/java
/usr/java/default/bin/java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, BuildID[sha1]=0x47f558a5fd950bfecb09a1c6d692967d949796d7, not stripped
$ java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
I tried few packages from Oracle and Java site with those results.
From Oracle site
JDK 7u6 (RPM) from
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1637583.html
CAN NOT BE INSTALLED AT ALL! (actually it make errors when unpacking some things during rpm install)
JRE 7u6 (RPM) from
http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.html
CAN NOT BE INSTALLED AT ALL! (actually it make errors when unpacking some things during rpm install)
From Java.com
JRE 7u5 (RPM) from
http://java.com/en/download/manual.jsp?locale=en
CAN BE INSTALLED BUT NEED ADDITIONAL SETUP STEPS! (java doesn't work in browser, alternatives doesn't see it)
I use JRE from Java.com, but I had to make some additional steps to make it work in browser and to make it available to alternatives.
Additional steps needed after RPM install (I hope I copied valid lines from my history)
Code: Select all
alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 20000
http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/
Last edited by viking on 21 August 2012, 14:25, edited 1 time in total.
Re: Java
[20:23:34] NicCo: ROSA general user problems
[20:23:36] NicCo: viewtopic.php?f=20&t=3432
[20:23:44] NicCo: JAVA problems are frquent
[20:23:56] NicCo: people dont know which version to install, where to download, which steps to do
[20:24:06] ROSA:: we are going to update java to cooker version
[20:24:48] NicCo: yes, installing JAVA form Oracle site is not easy
[21:00:39] NicCo: so there will be get-java packages updated for RM 2012?
[21:12:51] ROSA: yep
[20:23:36] NicCo: viewtopic.php?f=20&t=3432
[20:23:44] NicCo: JAVA problems are frquent
[20:23:56] NicCo: people dont know which version to install, where to download, which steps to do
[20:24:06] ROSA:: we are going to update java to cooker version
[20:24:48] NicCo: yes, installing JAVA form Oracle site is not easy
[21:00:39] NicCo: so there will be get-java packages updated for RM 2012?
[21:12:51] ROSA: yep
.
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.
--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL
--- Professional experience ---
Kernel designer, engineer, maintainer and tester for ROSA Desktop and OpenMandriva Lx O.S.
--- currently I'm playing with ---
LTS Kernels > Linux 4.1.12-nrjQL <<< Linux 3.18.17-nrjQL <<< Linux 3.14.46-nrjQL
EOL Kernels > Linux 3.19.8-nrjQL <<< Linux 3.17.8-nrjQL <<< Linux 3.15.10-nrjQL
- andre
- Utente junior
- Posts: 39
- Joined: 5 November 2011, 15:49
- OpenMandriva: 2010.2 (2010.3)
- Kernel: 3.2.20-nrj-desktop-1
- Desktop: kde4.8.4
- country: France
Re: Java
For Viking : cool guy !
So I repeat what I said :
1. java from Oracle runs well after rpm installation, yes.
2. But I was speaking about plugin for web browser which is present only in 32 bits version as recommended by Oracle.
3. So how to integrate java 32 bits with its web plugin in a x86_64 environment (this is recommmended by Oracle to benefit of java plugin). Do I have to install firefox 32 (Oracle does not tell anything about that) ?
4. You know what ? Since 1998-99 under Gnu/Linux I 'm happy
6. Thank you for all answers.
7. (and out off topic) I read you are using firefox 14 ; on my computer all newest version than 12 are crashing.
8. Excuse my poor English !!!
So I repeat what I said :
1. java from Oracle runs well after rpm installation, yes.
2. But I was speaking about plugin for web browser which is present only in 32 bits version as recommended by Oracle.
3. So how to integrate java 32 bits with its web plugin in a x86_64 environment (this is recommmended by Oracle to benefit of java plugin). Do I have to install firefox 32 (Oracle does not tell anything about that) ?
4. You know what ? Since 1998-99 under Gnu/Linux I 'm happy
6. Thank you for all answers.
7. (and out off topic) I read you are using firefox 14 ; on my computer all newest version than 12 are crashing.
8. Excuse my poor English !!!
Ne lâchez rien.
André
André
- viking
- Utente junior
- Posts: 80
- Joined: 26 July 2012, 18:43
- ROSA: Desktop Fresh R7 x64
- OpenMandriva: -
- Kernel: 4.1.18-nrjQL-desktop
- Desktop: KDE Plasma 5.5.4
- country: Serbia
Re: Java
Thank you NicCo, but I am little confused with this statement from ROSA.NicCo wrote:[20:23:34] NicCo: ROSA general user problems
[20:23:36] NicCo: viewtopic.php?f=20&t=3432
[20:23:44] NicCo: JAVA problems are frquent
[20:23:56] NicCo: people dont know which version to install, where to download, which steps to do
[20:24:06] ROSA:: we are going to update java to cooker version
[20:24:48] NicCo: yes, installing JAVA form Oracle site is not easy
[21:00:39] NicCo: so there will be get-java packages updated for RM 2012?
[21:12:51] ROSA: yep
You and ДроноваЮ both wrote that based on new Oracle licence, user have to go to Oracle site and to accept that licence in order to get Oracle JAVA. She also wrote that get-jre7-oracle was removed from ABF (http://forum.rosalab.ru/en/viewtopic.php?f=15&t=1190#p7309).
So, I can only guess this get-java package will be non Oracle then. Open JDK maybe?
I personally think that it maybe possible to use tar.gz packages from Oracle site for some semi-automatic scripts (even if user need to download package manually and to put it in some specific place on local disk). Even in this scenario, this will be much convenient, than to search for working RPMs, since latest RPMs have some problems extracting data (maybe they are for RH16 and RH17? as far as I know only RH15 packages can be installed on ROSA and Mandriva).
- viking
- Utente junior
- Posts: 80
- Joined: 26 July 2012, 18:43
- ROSA: Desktop Fresh R7 x64
- OpenMandriva: -
- Kernel: 4.1.18-nrjQL-desktop
- Desktop: KDE Plasma 5.5.4
- country: Serbia
Re: Java
1. Have you installed jre-7u6-linux-x64.rpm or jre-7u6-linux-i586.rpm? I got errors after installing of jre-7u6-linux-x64.rpmandre wrote:For Viking : cool guy !
So I repeat what I said :
1. java from Oracle runs well after rpm installation, yes.
2. But I was speaking about plugin for web browser which is present only in 32 bits version as recommended by Oracle.
3. So how to integrate java 32 bits with its web plugin in a x86_64 environment (this is recommmended by Oracle to benefit of java plugin). Do I have to install firefox 32 (Oracle does not tell anything about that) ?
4. You know what ? Since 1998-99 under Gnu/Linux I 'm happy
6. Thank you for all answers.
7. (and out off topic) I read you are using firefox 14 ; on my computer all newest version than 12 are crashing.
8. Excuse my poor English !!!
2. I am aware of that, but I have installed 64bit version and it works just fine, so I suggest you to do the same
As you can see it's 64bit
Code: Select all
$ file /usr/java/latest/lib/amd64/libnpjp2.so
/usr/java/latest/lib/amd64/libnpjp2.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x4fdde13fe756e5407da9fd2f99b1eaf041cf6e8d, not stripped
Code: Select all
alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 20000
7. Have you tried to uninstall Firefox (maybe even Thunderbird because of possible shared libs) and to install it again?
Re: Java
Try this....
32bits: ftp://ftp.surfnet.nl/pub/os/Linux/distr ... 0.i586.rpm
64bits: ftp://ftp.surfnet.nl/pub/os/Linux/distr ... x86_64.rpm
32bits: ftp://ftp.surfnet.nl/pub/os/Linux/distr ... 0.i586.rpm
64bits: ftp://ftp.surfnet.nl/pub/os/Linux/distr ... x86_64.rpm
Registered Linux user: 473556
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be
The Good, The Bad and The Ugly -> Linux, Windows e Dos
http://www.mandrivaclub.be
- andre
- Utente junior
- Posts: 39
- Joined: 5 November 2011, 15:49
- OpenMandriva: 2010.2 (2010.3)
- Kernel: 3.2.20-nrj-desktop-1
- Desktop: kde4.8.4
- country: France
Re: Java
That's what I needed : "alternative" to make javaplugin runing.!!!
Thank you very much, all is write now ! Perhaps I will be able to run latest firefox too !
Thank you very much, all is write now ! Perhaps I will be able to run latest firefox too !
Ne lâchez rien.
André
André