I was also facing the same problem in eclipse IDE but after changing the jar file to jre7(Right-click project>>Buildpath>>Configure build path>> AddLibrary>>Jre System Library) the error has resolved, i don't know how it happens can some one explain it.