I want to install Java to my server so I can use PHP shell_exec to compile Java online. So I'm trying to install Java on my webserver (Ubuntu - Parallels Plesk). I logged in to the server with PuTTY and tried some commands like:
sudo apt-get install openjdk-6-jre
or
sudo apt-get install oracle-java7-installer
But than I get error's like:
Package drweb-bases must be reinstalled, but there can be no archive found.
I tried to uninstall drweb-bases
, reinstall, no matter what. I still get that error.
What you I need to do? I am doing it completly wrong? Am I not destroying my webserver?
There is not much to find on this topic on Google.
openjdk-7-jdk
package, provided you don't need specifically the oracle jdk.