• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

single file compiling in eclipse

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not finding a feature to compile a single file(This is possible in net beans) in eclispe. Ofcourse. This feature is required for me so as to use the old compiled classes as dependency class files for the current java file to get compiled.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand the question. Normally, a Java file gets compiled by Eclipse immediately when you save it. Why doesn't that suffice for you?
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Prasad
I think that you have unchecked the Window -- > Preferences - > Workbench
Perform build automatically on resource modification.
This would mean that when you have made changes and saved them then the build would not be done.
I dont think that there is a way to compile only one file in Eclipse
You would now have to use Project ->> rebuild All to check out whether everything compiles fine.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh by the way I dont think that the old files will get compiled again. Only the changed files will be compiled
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Prasad,
You can't compile just one file in Eclipse. I can think of two ways around this:
1) For test purposes, put the class in a project by itself and rebuild just that project.
2) Put the other classes in a jar file so that the old compiled version is used instead of the original classes.
 
s prasad
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok,
understood that there is no feature facilitating single file compilation in eclispe. thanks to u all for the responses.
 
s prasad
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any plugins available for this. And would it be possible to write a plugin myself to get this feature.
 
reply
    Bookmark Topic Watch Topic
  • New Topic