简体   繁体   中英

Run projects in Java with the CodeRunner IDE on mac

Sorry for my level of English.

I have a problem with CodeRunner IDE that prevents me from using it correctly.

If I create an application with CodeRunner and run it, I have no problems, but if I save it to the hard disk I cannot run it again.

Once saved I always get this error:

CodeRunner Warning: Could not find a main method in the file "Untitled.java". Please add a main method or run the file in your project containing your main method. Error: no se ha encontrado o cargado la clase principal The file “Untitled.java” couldn't be opened because there is no such file..Untitled

It doesn't matter where you keep it or what name you put it on.

And if I open a Main.java file created with IntelliJ and run it it gives me an error. I get the same message:

CodeRunner Warning: Could not find a main method in the file "Main.java". Please add a main method or run the file in your project containing your main method. Error: main class not found or loaded The file “Main.java” couldn't be opened because there is no such file..Main

It could be something from Run Seting. Currently I have it like this:

java -cp "$ {compiler%: *}" "$ {compiler # *:}"

As it came by default.

Could you help me? Do you know why it gives me an error? How to create a project with CodeRunner?

Thank you so much everyone,

检查您的目录名称是否不包含“特殊字符”,CodeRunner 仅读取和执行“英文”路径中的文件......快乐代码!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM