how to enable manually installed Sun Java 1.7.0_07

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

how to enable manually installed Sun Java 1.7.0_07

Postby leo_mancini » Sun Sep 30, 2012 13:57

Hi all,

I am attempting to update my Sun Java to version 1.7.0_07. I have downloaded the "Linux x64 (.tar file)" followed the instructions found on http://java.com/en/download/help/linux_x64_install.xml.

I then followed the instructions from http://www.java.com/en/download/help/li ... xml#enable and have successfully enabled the java version for Firefox.

Ideally I would like to enable the same java system wide, though this version is not available within the repositories.

Though Google Chromium states that I've installed the same version... when I have a look at the plugins page it still states to download security update as below
"Java - Version: 1.7.0_07 Download Critical Security Update
Java plug-in for NPAPI-based browsers."

I also think that I haven't installed it correctly because when I load youtube video's it appears differently (ie different layout and different icons available within the youtube video) as it does within firefox, and when I play the video fullscreen it doesn't appear as "nice" and is slightly choppy as opposed to firefox's playback.

please note: The choppy playback was happening in firefox prior to updating and enabling manually the newest java.

* Please note that I do not want to install the icetea version of java.


Questions: Is there a better or easier way to install Sun Java 1.7.0_07?
How do I enable this within Chromium?
Can I enable this java system wide?

My current configuration is as follows
Linux Version: Sabayon 10 (64 bit)
java-config --list-available-vms (command output): *) Oracle JRE 1.7.0.6 [oracle-jre-bin-1.7]

This is also the outcome of the following command.
Code: Select all
 punzilla plugins # java-config --list-available-vms
The following VMs are available for generation-2:                                                                                                                                                                                           
1)      IcedTea JDK 6.1.11.4 [icedtea-bin-6]                                                                                                                                                                                                 
2)      IcedTea JDK 7.2.2.1 [icedtea-bin-7]                                                                                                                                                                                                 
3)      Oracle JDK 1.7.0.6 [oracle-jdk-bin-1.7]                                                                                                                                                                                             
*)      Oracle JRE 1.7.0.6 [oracle-jre-bin-1.7]                                                                                                                                                                                             
5)      Sun JDK 1.6.0.26 [sun-jdk-1.6]                                                                                                                                                                                                       
6)      Sun JRE 1.6.0.29 [sun-jre-bin-1.6] 


Thank you.
leo_mancini
Baby Hen
 
Posts: 15
Joined: Sat Mar 10, 2012 4:29

Re: how to enable manually installed Sun Java 1.7.0_07

Postby sabayonino » Sun Sep 30, 2012 14:22

for all ja-config options run :
Code: Select all
$ java-config


-S VM, --set-system-vm=VM
Set the default Java VM for the system
-s VM, --set-user-vm=VM
Set the default Java VM for the user


set your choice for your user :

as user :
Code: Select all
$ java-config -s <index>


your current java profile is set to
Code: Select all
*)      Oracle JRE 1.7.0.6 [oracle-jre-bin-1.7]   
User avatar
sabayonino
Sagely Hen
 
Posts: 1574
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: how to enable manually installed Sun Java 1.7.0_07

Postby svantoviit » Mon Oct 01, 2012 7:58

Leo, ever heard of Entropy? It's Sabayon's packagemanager ;)
The easiest way to install latest Java (it isn't called Sun anymore but Oracle) is to open Rigo and look for oracle-jdk or oracle-jre, depending on what you need. Another option is to use equo
Code: Select all
equo install oracle-jdk-bin
equo install oracle-jre-bin

The versions available are: dev-java/oracle-jdk-bin-1.7.0.7 and dev-java/oracle-jre-bin-1.7.0.7.

Beside java-config, you can manage it with eselect:
Code: Select all
eselect java-vm list
eselect java-nsplugin list

Code: Select all
eselect java-vm set [user|system] [vm]
eselect java-nsplugin set [32bit or 64bit] [nsplugin-vm]

With applications installed outside a package manager you are basically on your own.
User avatar
svantoviit
Technological Hen
 
Posts: 395
Joined: Sun Feb 28, 2010 17:55
Location: Europe

Re: how to enable manually installed Sun Java 1.7.0_07

Postby leo_mancini » Wed Oct 03, 2012 13:11

Hi all,

Thank you for providing me with some advice.

Unfortunately when I try to run the equo command in the command line. The version that I am after 1.7.0_07 is not available. The version that is available is below (which is the previous version 1.7.0.6).

Would I need to activate any other repositories in order to make Java 1.7.0_07?

Or Should I make a request for Sabayon to add the latest Oracle Java version that I would like.

As previously mentioned, I have manually installed and activated Java for Mozilla only and not system wide. The Youtube Quality is far superior than when I had the previous version of Oracle Java (and it appears to be thanks to the Java Update).

I would like the same quality to appear for Chromium, and other browsers should I choose to install them.

Thank you for your help.

Regards,

Code: Select all
punzilla Documents # equo search oracle-jdk-bin
>>  @@ Searching...
>>      @@ Package: dev-java/oracle-jdk-bin-1.7.0.6 branch: 5, [sabayon-weekly]
>>         Available:     version: 1.7.0.6 ~ tag: NoTag ~ revision: 0
>>         Installed:     version: 1.7.0.6 ~ tag: NoTag ~ revision: 0
>>         Slot:          1.7
>>         Homepage:      http://www.oracle.com/technetwork/java/javase/
>>         Description:   Oracle's Java SE Development Kit
>>         License:       Oracle-BCLA-JavaSE
>>  Keywords:  oracle-jdk-bin
>>  Found:     1 entry
leo_mancini
Baby Hen
 
Posts: 15
Joined: Sat Mar 10, 2012 4:29

Re: how to enable manually installed Sun Java 1.7.0_07

Postby svantoviit » Wed Oct 03, 2012 22:02

My apologies, Leo, the 1.7.0.7 version is only available in Portage at the moment, but should find it's way to Entropy, no need to make a package request…
So far you can install it using emerge.
User avatar
svantoviit
Technological Hen
 
Posts: 395
Joined: Sun Feb 28, 2010 17:55
Location: Europe


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests