java - jar edit and re-compile in simple way -
i have jar file called screencapture.jar
i use http://jd.benow.ca/ in there. have downloaded jd-gui
this shows me
i can see screencapture.class file. want edit 2 lines here
thread.sleep(15000l); thread.sleep(60000l);
and
driver.manage().window().setsize(new dimension(1024, 768)); driver.manage().window().setsize(new dimension(1200, 800));
but file not editable.
my question is, how edit it? how decompile can edit , recompile it. can re-upload jar file , gets normal?
btw, know nothing java, , don't have special application/software installed on machine
follow these steps:
- create eclipse project
- add jar ad dependency project
- create new class named screencapture.java in package screencapture.
- copy whole source jd view screenshot of u attached here.
- change code u want.
- build project
- check bin folder of eclipse project . have new compiled .class file.
- open jar in winrar , copy .class file bin folder jar.
- and done.
Comments
Post a Comment