Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Java Git integration(Eclipse don't see my changes)
Eclipse Java Git integration [message #1817393] Thu, 21 November 2019 15:13 Go to next message
Dmitriy Burtsev is currently offline Dmitriy BurtsevFriend
Messages: 4
Registered: November 2019
Junior Member
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 20:03 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3539
Registered: July 2009
Senior Member

Is Eclipse actually set up to build your project's code?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse Java Git integration [message #1817415 is a reply to message #1817414] Thu, 21 November 2019 20:11 Go to previous messageGo to next message
Dmitriy Burtsev is currently offline Dmitriy BurtsevFriend
Messages: 4
Registered: November 2019
Junior Member
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 21:05 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3539
Registered: July 2009
Senior Member

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?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse Java Git integration [message #1817425 is a reply to message #1817419] Thu, 21 November 2019 21:55 Go to previous messageGo to next message
Dmitriy Burtsev is currently offline Dmitriy BurtsevFriend
Messages: 4
Registered: November 2019
Junior Member
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 15:42 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 175
Registered: August 2016
Senior Member
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 16:06 Go to previous message
Dmitriy Burtsev is currently offline Dmitriy BurtsevFriend
Messages: 4
Registered: November 2019
Junior Member
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: Sun Dec 15 00:52:30 GMT 2019

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

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

Back to the top