vpi
vpi

Reputation: 193

In eclipse, how can I see where the java classes are loaded from?

My problem is as follow : I am developing an eclipse plugin and sometimes I lose track of where the classes are loaded from. What I would like is to see in the debugger stacktrace where a class is loaded from (which jar on the harddrive).

Am I missing some obvious Eclipse option ?

Any help would be greatly appreciated !

Upvotes: 7

Views: 5920

Answers (1)

Rajeev Sreedharan
Rajeev Sreedharan

Reputation: 1753

To see location of classes loaded : In Run configurations -> Arguments tab add vm argument -verbose. That will include the full path of classes loaded.

EDIT: To find a particular class from a list of jars:

I use a jar class finder plugin. I do not recall the exact location from where i downloaded, the alphaworks link seems broken as of now. But you can find similar tools.

Note : In eclipse, if the console fills up to a point you are not able to see previous logs, then in Common tab -> Standard I/O check File option.

Upvotes: 5

Related Questions