Prohibited package name: java

后端 未结 6 1242
灰色年华
灰色年华 2020-11-27 22:21

I tried to get the data from my database name as jaane with user name Hello and Password hello. Error:

java.lang.SecurityException: Prohibited package name:          


        
6条回答
  •  有刺的猬
    2020-11-27 22:57

    Change your package name. java as a package name is prohibited.

    Edit: Move your Main.java file in a (source) directory that doesn't start with java or javax and use the directory structure names to change your package name in the code.

提交回复
热议问题