- Reason 1: If you have a fresh installation of Ubuntu 14.0 , then before installing android SDK you have to install java environment.
- Reason 2: If still the file is not executable. Select android SDK Manager tool –>Goto -> Edit–>Preferences –> Behavior –>select the “Run executable text files when they are opened” at “Executable Text Files”
Solution 1:
tharaka@tharaka-ubuntu14:~$ sudo add-apt-repository ppa:webupd8team/java
[sudo] password for tharaka:
Oracle Java (JDK) Installer (automatically downloads and installs Oracle JDK6 / JDK7 / JDK8). There are no actual Java files in this PPA.
More info (and Ubuntu installation instructions):
– for Oracle Java 7: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
– for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
Debian installation instructions:
– Oracle Java 7: http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
– Oracle Java 8: http://www.webupd8.org/2014/03/how-to-install-oracle-java-8-in-debian.html
More info: https://launchpad.net/~webupd8team/+archive/ubuntu/java
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmp3pswad7h/secring.gpg’ created
gpg: keyring `/tmp/tmp3pswad7h/pubring.gpg’ created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp3pswad7h/trustdb.gpg: trustdb created
gpg: key EEA14886: public key “Launchpad VLC” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
tharaka@tharaka-ubuntu14:~$ clear
tharaka@tharaka-ubuntu14:~$ sudo apt-get update && sudo apt-get install oracle-java7-installer
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://ppa.launchpad.net trusty InRelease
Ign http://lk.archive.ubuntu.com trusty InRelease
Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Ign http://extras.ubuntu.com trusty InRelease
Get:2 http://security.ubuntu.com trusty-security Release [62.0 kB]
Ign http://lk.archive.ubuntu.com trusty-updates InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Get:3 http://ppa.launchpad.net trusty Release.gpg [316 B]
Hit http://extras.ubuntu.com trusty Release
Ign http://lk.archive.ubuntu.com trusty-backports InRelease
Get:4 http://ppa.launchpad.net trusty Release [15.1 kB]
Hit http://lk.archive.ubuntu.com trusty Release.gpg
Get:5 http://security.ubuntu.com trusty-security/main Sources [64.8 kB]
Hit http://extras.ubuntu.com trusty/main Sources
Get:6 http://lk.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:7 http://ppa.launchpad.net trusty/main amd64 Packages [2,863 B]
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Get:8 http://security.ubuntu.com trusty-security/restricted Sources [2,061 B]
Hit http://lk.archive.ubuntu.com trusty-backports Release.gpg
Hit http://extras.ubuntu.com trusty/main i386 Packages
Get:9 http://ppa.launchpad.net trusty/main i386 Packages [2,863 B]
Get:10 http://security.ubuntu.com trusty-security/universe Sources [17.5 kB]
Hit http://lk.archive.ubuntu.com trusty Release
Get:11 http://security.ubuntu.com trusty-security/multiverse Sources [1,896 B]
Get:12 http://ppa.launchpad.net trusty/main Translation-en [1,381 B]
Get:13 http://lk.archive.ubuntu.com trusty-updates Release [62.0 kB]
Get:14 http://security.ubuntu.com trusty-security/main amd64 Packages [200 kB]
Get:15 http://security.ubuntu.com trusty-security/restricted amd64 Packages [8,875 B]
Get:16 http://security.ubuntu.com trusty-security/universe amd64 Packages [85.3 kB]
Hit http://lk.archive.ubuntu.com trusty-backports Release
Get:17 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [3,458 B]
Hit http://lk.archive.ubuntu.com trusty/main Sources
Get:18 http://security.ubuntu.com trusty-security/main i386 Packages [190 kB]
Hit http://lk.archive.ubuntu.com trusty/restricted Sources
Hit http://lk.archive.ubuntu.com trusty/universe Sources
Get:19 http://security.ubuntu.com trusty-security/restricted i386 Packages [8,846 B]
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://lk.archive.ubuntu.com trusty/multiverse Sources
Get:20 http://security.ubuntu.com trusty-security/universe i386 Packages [85.2 kB]
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://lk.archive.ubuntu.com trusty/main amd64 Packages
Get:21 http://security.ubuntu.com trusty-security/multiverse i386 Packages [3,624 B]
Hit http://lk.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://lk.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://lk.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://lk.archive.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://lk.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://lk.archive.ubuntu.com trusty/universe i386 Packages
Hit http://lk.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://lk.archive.ubuntu.com trusty/main Translation-en
Hit http://lk.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://lk.archive.ubuntu.com trusty/restricted Translation-en
Hit http://lk.archive.ubuntu.com trusty/universe Translation-en
Get:22 http://lk.archive.ubuntu.com trusty-updates/main Sources [161 kB]
Get:23 http://lk.archive.ubuntu.com trusty-updates/restricted Sources [2,061 B]
Get:24 http://lk.archive.ubuntu.com trusty-updates/universe Sources [99.9 kB]
Get:25 http://lk.archive.ubuntu.com trusty-updates/multiverse Sources [4,463 B]
Get:26 http://lk.archive.ubuntu.com trusty-updates/main amd64 Packages [412 kB]
Get:27 http://lk.archive.ubuntu.com trusty-updates/restricted amd64 Packages [8,875 B]
Get:28 http://lk.archive.ubuntu.com trusty-updates/universe amd64 Packages [244 kB]
Get:29 http://lk.archive.ubuntu.com trusty-updates/multiverse amd64 Packages [11.2 kB]
Get:30 http://lk.archive.ubuntu.com trusty-updates/main i386 Packages [402 kB]
Get:31 http://lk.archive.ubuntu.com trusty-updates/restricted i386 Packages [8,846 B]
Get:32 http://lk.archive.ubuntu.com trusty-updates/universe i386 Packages [245 kB]
Get:33 http://lk.archive.ubuntu.com trusty-updates/multiverse i386 Packages [11.3 kB]
Hit http://lk.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://lk.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://lk.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://lk.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://lk.archive.ubuntu.com trusty-backports/main Sources
Hit http://lk.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://lk.archive.ubuntu.com trusty-backports/universe Sources
Hit http://lk.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://lk.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://lk.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://lk.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://lk.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://lk.archive.ubuntu.com trusty-backports/universe Translation-en
Ign http://lk.archive.ubuntu.com trusty/main Translation-en_US
Ign http://lk.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://lk.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://lk.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 2,430 kB in 36s (67.4 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
gsfonts-x11 java-common
Suggested packages:
default-jre equivs binfmt-support visualvm ttf-baekmuk ttf-unfonts
ttf-unfonts-core ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
gsfonts-x11 java-common oracle-java7-installer
0 upgraded, 3 newly installed, 0 to remove and 277 not upgraded.
Need to get 161 kB of archives.
After this operation, 631 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main oracle-java7-installer all 7u76+7u60arm-0~webupd8~0 [22.0 kB]
Get:2 http://lk.archive.ubuntu.com/ubuntu/ trusty/main java-common all 0.51 [130 kB]
Get:3 http://lk.archive.ubuntu.com/ubuntu/ trusty/main gsfonts-x11 all 0.22 [9,108 B]
Fetched 161 kB in 2s (70.9 kB/s)
Preconfiguring packages …
Selecting previously unselected package java-common.
(Reading database … 169854 files and directories currently installed.)
Preparing to unpack …/java-common_0.51_all.deb …
Unpacking java-common (0.51) …
Selecting previously unselected package oracle-java7-installer.
Preparing to unpack …/oracle-java7-installer_7u76+7u60arm-0~webupd8~0_all.deb …
Unpacking oracle-java7-installer (7u76+7u60arm-0~webupd8~0) …
Selecting previously unselected package gsfonts-x11.
Preparing to unpack …/gsfonts-x11_0.22_all.deb …
Unpacking gsfonts-x11 (0.22) …
Processing triggers for man-db (2.6.7.1-1) …
Processing triggers for doc-base (0.10.5) …
Processing 2 added doc-base files…
Processing triggers for shared-mime-info (1.2-0ubuntu3) …
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.54ubuntu1) …
Processing triggers for fontconfig (2.11.0-0ubuntu4.1) …
Setting up java-common (0.51) …
Setting up oracle-java7-installer (7u76+7u60arm-0~webupd8~0) …
Downloading Oracle Java 7…
–2015-02-06 11:08:02– http://download.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-linux-x64.tar.gz
Resolving download.oracle.com (download.oracle.com)… 104.75.84.10, 104.75.84.19
Connecting to download.oracle.com (download.oracle.com)|104.75.84.10|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-linux-x64.tar.gz [following]
–2015-02-06 11:08:02– https://edelivery.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-linux-x64.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)… 23.49.166.37
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.49.166.37|:443… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-linux-x64.tar.gz?AuthParam=1423201203_b865b5986caf86f8029f8ce7bf6b2cbb [following]
–2015-02-06 11:08:03– http://download.oracle.com/otn-pub/java/jdk/7u76-b13/jdk-7u76-linux-x64.tar.gz?AuthParam=1423201203_b865b5986caf86f8029f8ce7bf6b2cbb
Connecting to download.oracle.com (download.oracle.com)|104.75.84.10|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 142249690 (136M) [application/x-gzip]
Saving to: ‘jdk-7u76-linux-x64.tar.gz’
0K …….. …….. …….. …….. …….. …….. 2% 1.43M 93s
3072K …….. …….. …….. …….. …….. …….. 4% 1.30M 95s
6144K …….. …….. …….. …….. …….. …….. 6% 1.43M 91s
9216K …….. …….. …….. …….. …….. …….. 8% 1.40M 89s
12288K …….. …….. …….. …….. …….. …….. 11% 1.39M 87s
15360K …….. …….. …….. …….. …….. …….. 13% 1.18M 87s
18432K …….. …….. …….. …….. …….. …….. 15% 1.46M 84s
21504K …….. …….. …….. …….. …….. …….. 17% 1.40M 82s
24576K …….. …….. …….. …….. …….. …….. 19% 1.25M 80s
27648K …….. …….. …….. …….. …….. …….. 22% 1.24M 79s
30720K …….. …….. …….. …….. …….. …….. 24% 1.14M 78s
33792K …….. …….. …….. …….. …….. …….. 26% 1.64M 74s
36864K …….. …….. …….. …….. …….. …….. 28% 1.29M 72s
39936K …….. …….. …….. …….. …….. …….. 30% 1.02M 72s
43008K …….. …….. …….. …….. …….. …….. 33% 1.46M 69s
46080K …….. …….. …….. …….. …….. …….. 35% 1.07M 67s
49152K …….. …….. …….. …….. …….. …….. 37% 1.24M 65s
52224K …….. …….. …….. …….. …….. …….. 39% 989K 64s
55296K …….. …….. …….. …….. …….. …….. 42% 1.36M 62s
58368K …….. …….. …….. …….. …….. …….. 44% 1.38M 59s
61440K …….. …….. …….. …….. …….. …….. 46% 1.16M 57s
64512K …….. …….. …….. …….. …….. …….. 48% 759K 56s
67584K …….. …….. …….. …….. …….. …….. 50% 915K 55s
70656K …….. …….. …….. …….. …….. …….. 53% 1.28M 52s
73728K …….. …….. …….. …….. …….. …….. 55% 1.27M 50s
76800K …….. …….. …….. …….. …….. …….. 57% 1.30M 47s
79872K …….. …….. …….. …….. …….. …….. 59% 1.22M 45s
82944K …….. …….. …….. …….. …….. …….. 61% 1.26M 42s
86016K …….. …….. …….. …….. …….. …….. 64% 1.17M 40s
89088K …….. …….. …….. …….. …….. …….. 66% 1.25M 37s
92160K …….. …….. …….. …….. …….. …….. 68% 1.53M 35s
95232K …….. …….. …….. …….. …….. …….. 70% 1.39M 32s
98304K …….. …….. …….. …….. …….. …….. 72% 1.42M 30s
101376K …….. …….. …….. …….. …….. …….. 75% 1.37M 27s
104448K …….. …….. …….. …….. …….. …….. 77% 1.46M 25s
107520K …….. …….. …….. …….. …….. …….. 79% 1.37M 22s
110592K …….. …….. …….. …….. …….. …….. 81% 1.51M 20s
113664K …….. …….. …….. …….. …….. …….. 84% 1.47M 17s
116736K …….. …….. …….. …….. …….. …….. 86% 1.56M 15s
119808K …….. …….. …….. …….. …….. …….. 88% 1.28M 12s
122880K …….. …….. …….. …….. …….. …….. 90% 1.15M 10s
125952K …….. …….. …….. …….. …….. …….. 92% 1.48M 8s
129024K …….. …….. …….. …….. …….. …….. 95% 1.48M 5s
132096K …….. …….. …….. …….. …….. …….. 97% 1.20M 3s
135168K …….. …….. …….. …….. …….. …….. 99% 1.58M 1s
138240K …….. .. 100% 1.30M=1m46s
2015-02-06 11:09:50 (1.28 MB/s) – ‘jdk-7u76-linux-x64.tar.gz’ saved [142249690/142249690]
Download done.
Solution 2:
- Set behavior of file to execute from the “Files Preferences”


- Click on the executable file –> R.C ->propoerties–> permission–> tick “Allow executing file”


Cheers ! 🙂
Like this:
Like Loading...