• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse problems

 
Ranch Hand
Posts: 71
Mac Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 530
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know why the files always stay out on default?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic