File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes scjp - Java Compiling and Exection flow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "scjp - Java Compiling and Exection flow" Watch "scjp - Java Compiling and Exection flow" New topic
Author

scjp - Java Compiling and Exection flow

Srinivas Palam
Ranch Hand

Joined: Oct 20, 2005
Posts: 43
I am creating java class in eclipse and running from the dos prompt after setting class path.

javac ComingThru.java --> compiling

java ComingThru --> executing.

Is there any switch or something I can use to check the exection flow. Like from where the clow is starting etc ... This will help in understanding the flow .
Kancharla Madhu
Ranch Hand

Joined: May 06, 2012
Posts: 109

You can debug Java Application from the command prompt. Have a look at the following link : http://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/jdb.html


Champions arenĀ“t made in the gyms. Champions are made from something they have deep inside them - a DESIRE, a DREAM, a VISION
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1505
    
    5

Hi Srinivas,

If you are already using Eclipse IDE, then it has excellent options to debug your program. You'll need to set a break-point at any line you want to analyze and start debugging (check out 'Run' menu from toolbar).


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: scjp - Java Compiling and Exection flow