Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse problems

 
Alix Ollivier
Ranch Hand
Posts: 71
Java Linux Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for Screen shot 2012-11-09 at 6.12.37 PM.png]
Screenshot
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Alix Ollivier
Ranch Hand
Posts: 71
Java Linux Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
Java Linux Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
Java Linux Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
Screen shot 2012-11-10 at 3.32.11 PM.png
[Thumbnail for Screen shot 2012-11-10 at 3.32.11 PM.png]
ScreenShot
 
Alix Ollivier
Ranch Hand
Posts: 71
Java Linux Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know why the files always stay out on default?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic