wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse problems" Watch "Eclipse problems" New topic
Author

Eclipse problems

Alix Ollivier
Ranch Hand

Joined: Jun 04, 2012
Posts: 71

Recently, whenever I make a new class, it doesn't go into the right folder. Outside of Eclipse, my .java files go into the src folder. However, in Eclipse, my files are all outside. Why is that?




[Screen shot 2012-11-09 at 6.12.37 PM.png]


"The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!', but 'That's funny...' "
- Isaac Asimov
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 498

What a strange behavior!
The project has a red exclamation mark which means there is something wrong. Do you see any messages in the Problems view?


PM Me If You Want to get Urgent Help on Java Programming
Alix Ollivier
Ranch Hand

Joined: Jun 04, 2012
Posts: 71

No I didn't. I have no errors in my code and whenever I place something, it appears with the external libraries. In my Finder (Mac equivalent of Windows Explorer), it shows that the file is in the src folder.
Alix Ollivier
Ranch Hand

Joined: Jun 04, 2012
Posts: 71

Oh, wait, actually there are two problems. One is : (Project 'Personal Project' is missing required library: 'src/RedBlock.java') The other is : (The project cannot be built until build path errors are resolved)
Shishir Shivhare
Greenhorn

Joined: Nov 09, 2012
Posts: 7
It happens when you try to import project.look into .java files.Is it showing any "unresolved type" error ? If it is then Create new project and Copy all java files in new project.It will be resolved.
Shishir Shivhare
Greenhorn

Joined: Nov 09, 2012
Posts: 7
Recently, whenever I make a new class, it doesn't go into the right folder. Outside of Eclipse, my .java files go into the src folder. However, in Eclipse, my files are all outside. Why is that?

Check for .java Files properties and look for path.If it is showing .java file inside src folder then you may proceed.It Will be just problem of GUI which will be resolved when you restart the Eclipse.
Alix Ollivier
Ranch Hand

Joined: Jun 04, 2012
Posts: 71

I right clicked on RedBlock and selected "Remove from build path", then I selected "include" and it worked. However, now whenever I add a class, it goes like this until I "exclude" and then "include" it:



[Thumbnail for Screen shot 2012-11-10 at 3.32.11 PM.png]

Alix Ollivier
Ranch Hand

Joined: Jun 04, 2012
Posts: 71

Does anyone know why the files always stay out on default?
 
GeeCON Prague 2014
 
subject: Eclipse problems