Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

scjp - Java Compiling and Exection flow

 
Srinivas Palam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Anayonkar Shivalkar
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!