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

screencapture

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:

  1. create eclipse project
  2. add jar ad dependency project
  3. create new class named screencapture.java in package screencapture.
  4. copy whole source jd view screenshot of u attached here.
  5. change code u want.
  6. build project
  7. check bin folder of eclipse project . have new compiled .class file.
  8. open jar in winrar , copy .class file bin folder jar.
  9. and done.

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -