java is not working in linux. Why?
问题 Currently working on Linux Cinnamon . I have unistall/removed Open JDK from my local drive. Then I checked java -version via terminal and gives - $ java -version The program 'java' can be found in the following packages: * default-jre * gcj-5-jre-headless * openjdk-8-jre-headless * gcj-4.8-jre-headless * gcj-4.9-jre-headless * openjdk-9-jre-headless Try: sudo apt install <selected package> After that following the installation guide to install oracle jdk 8 for linux . Then I just checked java