Javac doesn't recompile referenced classes after changes in referenced java source file

571 views Asked by At

My main.java file calls Tree.java which inturn calls TreeNode.java file. Whenever I compile for first time using main.java. everything runs perfect.but then if I made any changes in Treenode.java,it doesn't recompile it's class file and I get same output.

I studied that javac recompiles class file whenever source file has updated timestamp compared to class file.but it isn't working here.

I tried with IDE and it is updating perfectly.i am facing this issue only with cmd.please help with out with this issue.

0

There are 0 answers