0

I type the

public class Main {

    public static void main(String[] args) {
        System.out.println("Hello world")
    }

}

But there is no button when right clicking "run"

Error:Cannot run program "C:\Program Files\Java\jdk-12.0.1\bin\java.exe" (in directory "C:\Users\Scott.IdeaIC2019.1\system\compile-server"): CreateProcess error=2, The system cannot find the file specified

I provided some screenshots, I tried uninstalling java and reinstalling to c:\program files\java rather than c:\program files (x86) But no luck.

enter image description here

enter image description here

All help is appreciated thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.