New answers tagged

2

Assuming you did not build OpenJDK from source, this will uninstall any package starting with openjdk: sudo apt remove --purge "^openjdk.*" Including any program depending on a Java runtime environment.


0

You can also try my ubuntu repository: https://launchpad.net/~mmk2410/+archive/ubuntu/intellij-idea-community To use it just run the following commands: sudo apt-add-repository ppa:mmk2410/intellij-idea-community sudo apt-get update sudo apt-get install intellij-idea-community


0

Eventually i have found solution. Issue was in this case, i were needed change the environment variable, the first open the file : sudo nano /etc/environment and next step is add this line : JAVA_HOME=(your path to JDK) in my case was : JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 and all is work


0

Uninstall your current java installation and do the following: Insert the webupd8team java ppa to your system (as root): add-apt-repository ppa:webupd8team/java apt-get update Install both oracle-java8-installer and oracle-java8-set-default. This will keep your JDK updated whenever new versions are released by Oracle.


1

You can install JDK using following command : sudo apt-get install openjdk-7-jdk And then run sudo update-alternatives --config java command and select JDK instead of JRE. And then try to run studio.sh Hope it helps


2

As per output mentioned for command sudo update-alternatives --config java I can see that you have only JRE installed but you also need JDK to compile and run the code. You can install JDK using following command : sudo apt-get install openjdk-7-jdk And then run sudo update-alternatives --config java command and select JDK instead of JRE. ...


0

This is a known bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820023 There is a conflict between openjdk-9-jdk and openjdk-9-jdk-headless which ought to be resolved by the package management software, but isn't. They try to write the same file. The error message in English is: Unpacking openjdk-9-jdk:amd64 (9~b112-2) ... dpkg: error processing ...


0

Run Following command: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer


0

Do: sudo update-alternatives --config java and input the desired selection number according to the Selection column. Do the same for others (if you want) e.g. javah, javap.



Top 50 recent answers are included