facebook

Java files not recompiling

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #201346 Reply

    greg
    Member

    Same problem with the latest MyEclipse build; old java files aren’t being recompiled after modification and new java classes aren’t being compiled and added to the web app; seems to have suddenly started (yes, I’ve made sure that the ‘perform build automatically on resource modification’ is checked).
    Any help appreciated, this has stopped me dead in my tracks on a mission critical app.

    #201348

    Scott Anderson
    Participant

    I’m sorry to hear you’re experiencing a problem. I’m splitting off a separate support case to address it.

    old java files aren’t being recompiled after modification and new java classes aren’t being compiled and added to the web app;

    The compilation of Java files, old or new, is handled by Eclipse itself not by MyEclipse. The MyEclipse deployer only copies changes to the deployment location; it doesn’t do anything to affect the compilation of Java files one way or the other.

    If you do a manual ‘Rebuild Project’, do all the java files get compiled? Are the class files copied appropriately to the deployment location? Can you post answers to all the questions we ask in the ‘Posting Guidelines’ thread please?

    –Scott
    MyEclipse Support

    #201351

    mdichi
    Member

    I have seen a similar thing occur. In my case, however, the problem seems to have been that the source directory was forgotten (or lost). For example, I keep my java classes in a “src” directory (not the default “Java Source”) directory. This worked fine, but one day it stopped working. It took me a while (most of a day) to determine that the java files were not compiling nor deployed because the source directory had mysteriously been switched back to “Java Source”.

    Mike

    #201353

    Scott Anderson
    Participant

    Mike,

    Very good point. I’ve also had Eclipse “forget” my source directory when I’ve been adding things to my build path. Seems to happen most often with plugin projects, but I’ve seen it with Java projects too. Thanks for the insight, as I’d completely forgotten about this. 🙂

    –Scott
    MyEclipse Support

    #234655

    Richard Eberhardt
    Participant

    Check for any errors in the build path (Project…Properties…Java Build Path).

    If there are any problems there (missing jar files, etc.) Eclipse will not perform its automatic re-compilation each time the source files change.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Java files not recompiling

You must be logged in to post in the forum log in