[ec2-user@ip ~]$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 34 окт 21 14:08 /etc/alternatives/java -> /usr/java/jdk1.8.0_45/jre/bin/java
[ec2-user@ip ~]$ ls -l /usr/java/jdk1.8.0_45/jre/bin/java
-rwxr-xr-x 1 root root 7734 апр 10 2015 /usr/java/jdk1.8.0_45/jre/bin/java
I also tried to set /usr/bin/java as direct symlink to /usr/java/jdk1.8.0_45/jre/bin/java. That does not help. Got the same fork error.
Switching to openjdk gives another error:
[ERR] client: failed to complete task 'stats' for alloc '60c23451-078e-92bf-baee-e44b8543523a': 1 error(s) occurred:
* Wait failed on pid 6905: exit status 1
openjdk: