Error: Module not specified (IntelliJ IDEA)

后端 未结 5 2160
终归单人心
终归单人心 2021-01-31 13:25

I was trying to execute a simple program in IntelliJ IDEA as a static web project. I\'m newbie and I\'m learning web development with Node.js. I took help from the official webs

5条回答
  •  耶瑟儿~
    2021-01-31 13:54

    This is because the className value which you are passing as argument for
    forName(String className) method is not found or doesn't exists, or you a re passing the wrong value as the class name. Here is also a link which could help you.

    1. https://docs.oracle.com/javase/7/docs/api/java/lang/ClassNotFoundException.html
    2. https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#forName(java.lang.String)

    Update

    Module not specified
    

    According to the snapshot you have provided this problem is because you have not determined the app module of your project, so I suggest you to choose the app module from configuration. For example:

提交回复
热议问题