This post desribes about how can we install jdk in intel edison board in Yocto operating system. If apt or rpm commands were not found just follow the steps,

Create a directory name java under the /usr/

root@edison:~# mkdir /usr/java

root@edison:~# cd ~

download the jdk file using wget command

  wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" ""

Extract the tar file,
root@edison:~# tar -xvzf  jdk-7u67-i586.tar.gz

Now move the directory  jdk1.7.0_67 into /usr/java
root@edison:~# mv  jdk1.7.0_67 /usr/java/.

Now configure the java environment variables
root@edison:/usr/java#  JAVA_HOME=/usr/java/jdk1.7.0_67 

root@edison:/usr/java#  export JAVA_HOME

root@edison:/usr/java#  PATH=$JAVA_HOME/bin:$PATH

root@edison:/usr/java#  export PATH

root@edison:/usr/java#  java -version

ecjava version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode)
root@edison:/usr/java# echo $JAVA_HOME

the following lines to be added in /etc/profile file.
# vi /etc/profile

export JAVA_HOME
export PATH

Note : You can also change the location to /home/root/java instead of /usr/java

Error :

If you may received the below error check your environment variable path:
Error: server VM not supported