This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Step by step compilation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Step by step compilation" Watch "Step by step compilation" New topic

Step by step compilation

Dhee raj

Joined: Sep 13, 2011
Posts: 4
hi all,

I just had a doubt.
Is it possible to run a java program line by line as in C(By pressing F5)
If so how can it be done.

Thanks in advance.
John Jai

Joined: May 31, 2011
Posts: 1776
The functionality of the F5 key should have been coded into the tool to run the C code.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15100

Welcome to the Ranch.

Several Java IDEs have a debugger which allows you to step through the code line by line. In Eclipse you can set breakpoints, run the program for debugging (Run / Debug As / Java Application).

For more about debugging in Eclipse see the documentation.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Dhee raj

Joined: Sep 13, 2011
Posts: 4
Hey Jesper,
Thanks a lot.That really helped.
I agree. Here's the link:
subject: Step by step compilation
It's not a secret anymore!