MDP
MDP

Reputation: 4267

Netbeans doesn't applies changes to the code

I've been asked to modify a java desktop application (I've never worked on java desktop application).

I have been gaven a project, that I opened with Netbeans 8.0.2. Something weird happens.

If I edit the code and then I run the project the changes are not applied. If I build the project and then I run the just created file (project/dist/filename.jar) the changes are applied.

This weird behaviour happens only if I edit this project on Netbeans. If I edit this project with Eclipse I'm able to see the changes and I'm able to see the changes also on my own projects created on Netbeans.

The problem seems to be: the project I've been gaven + Netbeans.

Do you have any idea about the issues?

Thank you man

Upvotes: 0

Views: 4934

Answers (3)

Debarchan Dash
Debarchan Dash

Reputation: 1

Try selecting the right profile for compilation. under project properties -> Configurations it selects by default. Change that to the profile which your project it pointing at. If your source code is directly connected to GIT hub, ensure that the branch and profile name both match. I solved it that way.

Project Properties

Upvotes: 0

Yassine Ennaji
Yassine Ennaji

Reputation: 21

In Netbeans, Recompile the classe with F9.

enter image description here

Upvotes: 2

Roshana Pitigala
Roshana Pitigala

Reputation: 8786

  • Right click on the project name, then click on properties.
  • Goto Build -> Compile.
  • There tick Compile on Save.
  • Click OK.

enter image description here


This will compile your project every time you save it. Usually all files automatically are saved before running. So the changes you made should appear.

Upvotes: 2

Related Questions