Greetings to all updated and those who are planning.
As many of you know, proprietary Java was released from official repositories.
Instead, users were invited to use
OpenJDK .
However, with the stability of the latter there are serious problems.
But first things first…
Today, installing a new
proxmox 2.1 on the server, I found out that after the upgrade
My KVM console does not work for my system.
Quickly realized that you need to put jre and climbed into the terminal and without thinking twice
I install
openjdk-6-jdk with
icedtea-6-plugin for applets to work.
I restart the browser, I go to the tab of the web-muzzle of the proxmox, I launch the console.
On this all actually ended, or rather a set of dances began, for here is an incomplete list
Problems I encountered using both
openjdk-6-jdk and
openjdk-7-jdk :
1) When closing the console window,
Firefox went down entirely with it.
2) Initialization of the applet, occurs with 100% CPU usage, at the moment of which the browser is blocked.
It lasts quite a long time, which is why it is very annoying.
3) A bunch of proxmox pop-up errors.
')
Admittedly, this was my first experience with OpenJDK and probably the last one.
Finally, I decided to install a proprietary java, and it was useful to terrorize Google,
tell how to do it with minimal losses.
It turns out that some guys already joined the network and made a ppa.
I was delighted, but it was not there.
After following the steps to
sudo apt-get install ,
APT gave me the error "Errors were encountered while processing: oracle-java7-installer".
Again, I climbed into Google and found how to cure it. In case someone got caught, I
provide a link with a cure for this disease.
I was desperate to find a solution on the network, so I decided to go a different way - a trusted worker.
By simple manipulations, I managed to make everything work, and the results were pleasantly surprised.
In particular, problems with both performance and browser crash disappeared.
The essence
So, we have 2 options for how to install, leaving the system clean.
Before proceeding, I recommend to clean the system from OpenJDK:
sudo apt-get purge openjdk*
This command will remove everything related to all versions of OpenJDK.
Method number 1.
Short and fast option (if you have x86_64),
where the .deb package is already prepared by me in advance, uploaded to the network, and it remains only to download and install it:
1)
Download the package .
2) We execute 4 commands in the terminal:
3) Restart the browser and enjoy the time saved.
Unless of course you have a 64-bit version of pangolin.
Method number 2, from start to finish.
1) Go to
the Java SE
download site , and download the package (.rpm), according to our architecture:
Linux x86 (32-bit)Linux x64 (64-bit)2) Install alien, in fact, it is a package converter that will repack the downloaded .rpm packages into
we need the .deb format, with its own tricks.
sudo apt-get install alien
3) We set “alien” on downloaded rpm.
sudo alien jdk-7u4-linux-x64.rpm --scripts
At this stage, a .deb package will be generated in the same directory.
4) Next on the thumb, install the package, create symlinks and enjoy life.
sudo dpkg -i jdk_1.7.004-1_amd64.deb mkdir -p ~/.mozilla/plugins ln -s /usr/java/jdk1.7.0_04/jre/lib/amd64/libjavaplugin_jni.so ~/.mozilla/plugins/ ln -s /usr/java/jdk1.7.0_04/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
Immediately make a reservation that I do not stand on the fact that I am to blame for the whole OpenJDK, but experiments were made
on freshly installed 12.04 and all problems were resolved after installing the proprietary version.