No such directory: C:/Users/Admin/IdeaProjects/untitled/src/com/company/Main.java [closed]

Tags:



I’m trying to write my first Java program, but I’m getting this error trying to open the main.java terminal:

Cannot open Local Terminal

No such directory: C:/Users/Admin/IdeaProjects/untitled/src/com/company/Main.java

Error running process: CreateProcess failed. Code 267

See IDE log (Help | Show Log in Explorer) for the details.

What am I doing wrong? How do I fix it?

Answer

Since you are just getting started my best advice to you is to search for a step by step guide on how to do what you’re doing that is specific to your specific IDE.

Here is one example guide to starting Java from that IDE: https://www.javatpoint.com/intellij-idea-first-java-program



Source: stackoverflow