Want to install fresh jdk 6 for Android development. Before I had jdk 7 installed which I removed for fresh jdk 6 installation. Tried using the webupd repository way, not of use, tried downloading the jdk from oracle and then unzipping it, not of use.
I want to know if removing these listed packages will help?
java -version
The program 'java' can be found in the following packages:
* default-jre
* gcj-4.6-jre-headless
* openjdk-6-jre-headless
* gcj-4.5-jre-headless
* openjdk-7-jre-headless
Try: sudo apt-get install
EDIT: in response to MrVaykadji :
I tried doing the commands ... after i executed the sudo apt-get install -----
I encountered this error message at the end of log:
update-alternatives: error: no alternatives for java.
update-alternatives: using /usr/lib/jvm/java-6-oracle/jre/bin/ControlPanel to provide /usr/bin/ControlPanel (ControlPanel) in auto mode.
update-alternatives: error: cannot stat file '/usr/lib/jvm/jdk-6u38-linux-x64-rpm.bin/java': Not a directory
dpkg: error processing oracle-java6-installer (--configure):
subprocess installed post-installation script returned error
exit status 2
No apport report written because MaxReports is reached already
Errors were encountered while processing:
openjdk-7-jre-headless
openjdk-6-jre-headless
default-jre-headless
openjdk-6-jre
default-jre
openjdk-6-jdk
default-jdk
openjdk-7-jre
oracle-java6-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
No comments:
Post a Comment