Finally, I found this article by searching on Google. The problem is solved after applying a solution mentioned there. I forgot to install Java on the computer, so the problem was fixed after I installed the updated version of Java there. Now Minecraft is running on a computer without any problems.