Debugging getResource*

前端 未结 5 769
心在旅途
心在旅途 2021-01-07 22:16

How do you debug getResource-style methods that are failing, returning null?

I am sure the file it\'s looking for is there, but it\'s returning NULL. How do I know w

5条回答
  •  有刺的猬
    2021-01-07 22:35

    I think you should tell Eclipse or your favourite IDE where the JDK (JRE) source files can be found. Then you can step in the methods of the Java Runtime classes too.

提交回复
热议问题