0 کاربر و 1 مهمان درحال مشاهده موضوع.
$ sudo apt-get install oracle-java8-set-default
Setting up oracle-java8-installer (8u5-1~webupd8~3) ...Downloading Oracle Java 8...--2014-06-25 11:26:31-- http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gzResolving download.oracle.com (download.oracle.com)... 92.122.49.34, 92.122.49.35Connecting to download.oracle.com (download.oracle.com)|92.122.49.34|:80... connected.HTTP request sent, awaiting response... 403 Forbidden2014-06-25 11:26:32 ERROR 403: Forbidden.download failedOracle JDK 8 is NOT installed.dpkg: error processing package oracle-java8-installer (--configure): subprocess installed post-installation script returned error exit status 1dpkg: dependency problems prevent configuration of oracle-java8-set-default: oracle-java8-set-default depends on oracle-java8-installer; however: Package oracle-java8-installer is not configured yet.dpkg: error processing package oracle-java8-set-default (--configure): dependency problems - leaving unconfiguredNo apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: oracle-java8-installer oracle-java8-set-defaultE: Sub-process /usr/bin/dpkg returned an error code (1)ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
https://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz
خوووووووب چاره چیه من هیچ کاری نمیتونم بکنم وی ... پی ... ان هم بخوام نصب کنم باز جاوا میخواد چیکار کنم
sudo tar -xzvf jdk-8XXXXXXXXX.tar.gz -C /opt/
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jdk1.8.0/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jdk1.8.0/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jdk1.8.0/bin/javaws" 1
java -versionjava version "1.8.0"Java(TM) SE Runtime Environment (build 1.8.0-b132)Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)