Update class files in eclipse

Hello there,

i want to know how do i update my class files of my java application in eclipse IDE.Appreciate your help.

cheers
ZOlf
zolfAsked:
Who is Participating?
 
basav_comConnect With a Mentor Commented:
Click the Project > Clean... option
and then build it again. Project > Build All

0
 
CEHJConnect With a Mentor Commented:
What do you mean by 'Update'? Class files are produced by the compiler when the source is compiled and that happens automatically by default in Eclipse
0
 
sciuriwareConnect With a Mentor Commented:
No, not automatically.

zolf:   Window-Preferences-General-Workspace.
See if the 1st and the 3rd checkbox are marked.

;JOOP!
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
CEHJCommented:
Well - it's always worked automatically for me (unless i've turned off default behaviour ;-) )
0
 
basav_comCommented:
Hi Zolf,

What said by CEHJ, sciuriware are correct.
Here is the proof ;)
By default 'Build Automatically' is checked on. See the attached pic.
You can manually build projects(compile) using: Project > Build All

eclipse.JPG
0
 
zolfAuthor Commented:

because i updated my java source code,then i jarred my application.with the update not reflecting when ii opened the application with the jar
0
 
cwrdy12Connect With a Mentor Commented:
You may prefer to investigate using a build tool such as Ant or Maven to perform a clean compile before creating your application jar. Ant is probably the easiest to start using and integrates nicely with Eclipse.

For Ant start here:

http://ant.apache.org/

Eclipse comes with Ant so you shouldn't need to install it again.
0
 
zolfAuthor Commented:
sciuriware:
>> Window-Preferences-General-Workspace.
thanks for your suggestion.the third option was not selected in my case.

basav_com:
>>Click the Project > Clean... option
I managed to do this.But...
>>and then build it again. Project > Build All
i cannot select this.i mean it is not enabled.what could be the reason.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.