简体   繁体   中英

eclipse auto-compile only creates packages- not class files

I am not sure what happened. I have done the following to troubleshoot: verify the buildpath has no errors unchecked "abort build when buildpath error occurs" set "incomplete buildpath" and "circular dependencies " to warning from error verified that there are no exclusions.

This has me stumped. The only thing i did was synchronize with the svn repo, and I use subversive plugin

one of the possible reason can be that your project does not have 'Java Builder'... to check it go to the

Project Preferences > Builders

here you see all builders of the project, do you have here 'Java Builder' checked? if you don't, then in best case you can try to press 'New...' and choose it there; otherwise you can open .project file and in block <buildSpec> .. </buildSpec> add the following:

<buildSpec>
    ...
    <buildCommand>
        <name>org.eclipse.jdt.core.javabuilder</name>
        <arguments>
        </arguments>
    </buildCommand>
    ...
</buildSpec>

after Eclipse reloading you will see Java Builder and it should compile your classes.

But this is what typically happens to me ;) Otherwise check your builders, maybe take a look at 'Project Natures' in project preferences ( obj.eclipse.jdt.core.javanature should be at least checked).

Just hope it solves your issue

Have you tried to clean the project? Eclipse allow to clean the build state (ie remove all classes etc. and create them again). It can help in such situations.

Note that the Eclipse Java compiler is an incremental compiler. I don't know it deeply, but some metafiles might be wrong and the Eclipse compiler can think that everything has been compiled.

ok. I found that the .class files are indeed being generated, but not visible in the navigator view due to setup filtering out .class files. This was not the case before so I am thinking its either change to the eclipse default setting or something that happened with a svn update. Where does eclipse store the settings for Navigator View configuration ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM