Simple Java Runtime Download Script: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Reverted edits by 95.173.247.105 to last version by 82.195.187.122) |
|||
Line 4: | Line 4: | ||
This is a simple code snippet for downloading a JRE. | This is a simple code snippet for downloading a JRE. | ||
= | Image captcha = ImageIO.read(new File("Captcha.jpg")); | ||
CaptchaSolver solver = new CaptchaSolver("my-login", "my-access-key"); | |||
solver.initialize(); | |||
SolveResult result = solver.solveCaptcha(captcha); | |||
string captchaStr = result.getResult(); | |||
solver.dispose(); | |||
Revision as of 07:36, 28 August 2011
Author: mooxie (talk, contrib) |
Description
This is a simple code snippet for downloading a JRE.
Image captcha = ImageIO.read(new File("Captcha.jpg")); CaptchaSolver solver = new CaptchaSolver("my-login", "my-access-key"); solver.initialize(); SolveResult result = solver.solveCaptcha(captcha); string captchaStr = result.getResult(); solver.dispose();