Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse Java Git integration(Eclipse don't see my changes)
Eclipse Java Git integration [message #1817393] Thu, 21 November 2019 10:13 Go to next message
Eclipse UserFriend
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
Re: Eclipse Java Git integration [message #1817414 is a reply to message #1817393] Thu, 21 November 2019 15:03 Go to previous messageGo to next message
Eclipse UserFriend
Is Eclipse actually set up to build your project's code?
Re: Eclipse Java Git integration [message #1817415 is a reply to message #1817414] Thu, 21 November 2019 15:11 Go to previous messageGo to next message
Eclipse UserFriend
How can I check if Eclipse set up to build my project's code?
I can see project in Project Explorer. I can open .java file.
Re: Eclipse Java Git integration [message #1817419 is a reply to message #1817415] Thu, 21 November 2019 16:05 Go to previous messageGo to next message
Eclipse UserFriend
If you open the project's Properties dialog, is there a Java Build Path page? Does that page have a Source tab with an entry for your source folder? Are you running your file as a Java Application, or some other kind of launch?
Re: Eclipse Java Git integration [message #1817425 is a reply to message #1817419] Thu, 21 November 2019 16:55 Go to previous messageGo to next message
Eclipse UserFriend
Yes it is Java Build Path in Properties. Source tab ProjectName/src
Included: (all)
Excluded: (None)
Native library location:(None)
Ignore optional compile problems: No
Contains test sources: No

I am running file as Java Application
Re: Eclipse Java Git integration [message #1817544 is a reply to message #1817425] Mon, 25 November 2019 10:42 Go to previous messageGo to next message
Eclipse UserFriend
Check <Global Menu>->Project->Build Automatically. Is it switched on? (Should have a checkmark.)
Re: Eclipse Java Git integration [message #1817547 is a reply to message #1817544] Mon, 25 November 2019 11:06 Go to previous message
Eclipse UserFriend
Build Automatically was off.
Now it works.
Thank you
Previous Topic:Install plugin in Javascript for beginner
Next Topic:maven dependency colored green and blue
Goto Forum:
  


Current Time: Wed Jul 16 23:00:00 EDT 2025

Powered by FUDForum. Page generated in 0.11500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top