cannot run a new java file in a newly created project in intellij IDEA 2018.1 Ultimate

已回答

Hi, i am totally new to java. I was able to successfully create my first project "MyPrograms". Then i created another new java file "first_program.java" under the "MyPrograms" directory. When i run it the previous file created automatically while creating the project  the "Hello world " application is being executed. Please suggest how to run the new created java file"first_program.java".



0

Hello,

Your "first_program.java" isn't located under sources root. Please move it under "src" directory.

 

0

You are welcome!

0

请先登录再写评论。