what jar file am I in?

D

David Thielen

S

Skippy

Hi;
Is there any way to determine from a method what actual file (.jar,
.class, .war, .ear, ???) the method I am in was loaded from?

thanks - dave

this.getClass().getResource(...your classname...).getPath();
// resource is an URL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top