How to debug with external library (jar file) supplied?

Answered

In the source file I use some function from external library (already added in project structure). I can run the file successfully.

However, when I click on debug, it throws a 

NoSuchMethodException

Any possible solution?

0
4 comments

It should work the same in run and debug. Please share a sample project to reproduce.

0
Avatar
Permanently deleted user

Hi,

sample code is pasted here: https://paste.ubuntu.com/p/tdrRm7jgJx/

with algs4.jar supplied: https://algs4.cs.princeton.edu/code/algs4.jar

(Added in project structure -> Libraries)

0
Avatar
Permanently deleted user

Well, I'm not able to reproduce this on another computer...

0
Avatar
Permanently deleted user

Just deleted the config files for Idea and restart --

It works now!

0

Please sign in to leave a comment.