The document presents a framework for localizing one or multiple jammers in a wireless sensor network with high accuracy. It uses a direct measurement technique of measuring the strength of jamming signals (JSS) at boundary nodes. An evaluation metric is defined to quantify the estimation errors between estimated and true jammer locations. The jammer localization problem is formulated as a non-linear optimization problem to minimize this evaluation metric and find positions closest to the true jammer locations. Simulation results show the error-minimizing framework achieves better performance than existing indirect localization schemes.