unable to access bahmni services in centos 6.8

the main problem was my internet connect, it was not fast enough, so each time it failed to install a component, i would run bahmni install again, and then it will proceed to install i did that till it succeeded, for the down for maintence error, i checkd the openmrs log and found that the issue was with java as stated above by others so i installed it and now it works like a charm.