Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

Eclipse Java Git integration

Solved! Go to Solution.

I am new to Git. I inherited an Eclipse Java project. I was able to check it out to my local repository, build and run.

I can’t make any changes to the source files. Somehow Eclipse still running the old version of file.

Example:

Old code:  FileInputStream fis = new FileInputStream("C:/dir/FileA.txt");

New code: FileInputStream fis = new FileInputStream("C:/dir/FileB.txt");

Error message: java.io.FileNotFoundException: c:\dir\FileA.txt (The system cannot find the file specified)

Somehow Eclipse still execute the old code. I was able to open source file with Notepad. I see “C:/dir/FileB.txt".

Windows Eclipse Version: 2019-03 (4.11.0)

 

Thank you.

1 Reply
Highlighted
Solution
Copilot Lvl 2
Message 2 of 2

Re: Eclipse Java Git integration

Build Automatically was off

Now it works.