java.util.MissingResourceException

前端 未结 6 1149
你的背包
你的背包 2021-01-05 15:56

I am getting below exception while running an application. This application read abc.properties file,

Exception in thread \"main\" java.util.MissingResourceExcept         


        
6条回答
  •  没有蜡笔的小新
    2021-01-05 16:29

    I had the same issue today and it took me a while until I figured out a fix (I'm using Eclipse as an IDE). My project folder contains the *.properties-Files in the following path:

    project/src/strings
    

    Since strings is a sub-folder of src and src is already in the build path of the project (see Property Window), all I needed was to add an Inclusion-Pattern for the *.properties-Files:

    **/*.properties
    

    There should be already an Inclusion-Pattern for *.java-Files (**/*.java)

    Maybe there is something similar for your IDE

提交回复
热议问题