• Post Reply Bookmark Topic Watch Topic
  • New Topic

When did java files Compile in Eclipse ide ? and when is the .class file created in Eclipse IDE  RSS feed

 
Shashank Rajput
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


When we start writing code in .java files in Eclipse it immediately detect and shows error if there is any error in .java file that means while we are writing the code it is compiling that code at the same time and showing that compilation error. The question is Is eclipse compiling all the java code side by side and generates .class files at the time we are writing code in java files. If yes what happens when we use build option . It also compiles the .java file into .class files.

Please Explain difference between the two conditions ?
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

IDEs are able to go through the code comparing it with the grammar and with some elements of best practice before compiling it. If you want to know when the .java files are compiled, open the bin directory under the Workspace folder and look at the creation/update times for the .class files. See whether those change when you push the run button.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!