13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

152Chapter 5The Sun Microsystems Java Software <str<strong>on</strong>g>Development</str<strong>on</strong>g> KitExample 5.18 An actual jdb sessi<strong>on</strong>, with commentary$ jdbInitializing jdb ...> stop in FetchURL.main (1)Deferring breakpoint FetchURL.main.It will be set after the class is loaded.> run FetchURL http://localhostrun FetchURL http://localhostSet uncaught java.lang.ThrowableSet deferred uncaught java.lang.Throwable>VM Started: Set deferred breakpoint FetchURL.mainBreakpoint hit: "thread=main", FetchURL.main(), line=48 bci=048 for (i = 0; i < args.length; i++)main[1] list44 {45 int i;46 FetchURL f;4748 =>(2) for (i = 0; i < args.length; i++)49 {50 System.out.println(args[i] + ":");51 System.out.println(new FetchURL(args[i]));52 }53 }main[1] step>Step completed: "thread=main", FetchURL.main(), line=50 bci=550 System.out.println(args[i] + ":");main[1] step> http://localhost:Step completed: "thread=main", FetchURL.main(), line=51 bci=3251 System.out.println(new FetchURL(args[i]));main[1] step>Step completed: "thread=main", FetchURL.(), line=8 bci=08 {main[1] list4 public class FetchURL {5 private URL requestedURL;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!