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/
download the jdk file using wget command
wget --no-check-certificate --no-cookies - --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.tar.gz"
Extract the tar file,
Now move the directory jdk1.7.0_67 into /usr/java
Now configure the java environment variables
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)
the following lines to be added in /etc/profile file.
Note : You can also change the location to /home/root/java instead of /usr/java
If you may received the below error check your environment variable path:
Error: server VM not supported