It is taking too much time to run my application in eclipse
Whenever i run my application in eclipse it starts building and then runs. As i am haing thousands of classes it taking too much time to build everytime. May i know the reason开发者_开发技巧 please and what i have to do to avoid it?
friends i got the answer for my scenario:
There will be Build(if required) before launch check button was marked true. because of which it builds even if you have build it just before running. So i have unmarked it on which its running immediately.
Windows > Preferences > Run/Debug > Launching
"thousands of classes" - there's the problem.
If those are all yours, you can't help but create the .class files when they're needed.
I'd be surprised if you were touching every one of those classes. Doesn't Eclipse do incremental builds, only compiling the .java files that have changed since the last build? If not, I'd look into setting it up to do so. Maybe you could try Ant, which does do incremental builds.
- make sure
Project > Build automatically
is checked - righ-click your project,
Properties > Builders
and consider removing any redunant builders. Be very careful as this might disable some desired functionality.
Do you use any external libraries as source files? This may be the problem.
If those thousands of classes are libraries you are using you should use Jars instead.
精彩评论