“Unknown Source” in java stack trace, yet line numbers are in the class file

后端 未结 4 480
南方客
南方客 2020-12-25 13:05

I\'ve written a super simple java class that is throwing exceptions as it should. However the stack trace I\'m getting looks like this:

java.lang.RuntimeExc         


        
4条回答
  •  被撕碎了的回忆
    2020-12-25 13:36

    Found this answer on another question:

    This is normally related to missing debug information. You are probably using JRE (not JDK), which does not include debug information for rt.jar classes. Try using full JDK, you'll get proper locations in the stack trace

提交回复
热议问题