Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

All of a sudden many of my imports are underlined in red, that goes away when I retype them..

 
Matt Kohanek
Village Idiot
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All of the org.richfaces imports are all of a sudden underlined in red, and of course any thing in the code that uses them. So of course my jsf pages that use these beans will not load. When i tried to load one I see:



Is my prject broken now, do I need to recreate everything, or is there a way to fix this...I really have no idea what is going on here.

All I did was add in httpclient-commons jar to get some httpclient stuff working, restarted eclipse a few times, and upon about third time restarting this happens all of a sudden. ANy ideas?
 
Matt Kohanek
Village Idiot
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, I was able to retype everything that was in red, and the errrs went away, but when tryint o run a page I stil see that error stack.
 
Matt Kohanek
Village Idiot
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and now this



man...
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've seen stuff like that happen when source control is turned on and the files are read only. Any chance?

-Cameron McKenzie
 
Matt Kohanek
Village Idiot
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont even know how to do that lol.
but its moot now, I made a newe project and it is working betetr than that one so Im happy with it
 
Moh Afifi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please note that, if you are using eclipse, and this happens when you use source control, there is a fiile in the project root folder that doesn't appear in the workspace called classpath.
if this is not correct then the project doesn't execute correctly.
this can also be checked in the build path in the project properties
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moh Afifi wrote:please note that, if you are using eclipse, and this happens when you use source control, there is a fiile in the project root folder that doesn't appear in the workspace called classpath.
if this is not correct then the project doesn't execute correctly.
this can also be checked in the build path in the project properties


A small clarification. The file in question is named ".classpath". The dot at the beginning is part of the Unix convention that filenames beginning with a dot are "hidden" files. Unlike Windows, the Unix filesystems didn't invest very heavily in file attributes like the System bit.

Although the Eclipse Java explorer doesn't show this file or its partner in crime ".project", you can see them when using the Resource view. Normally you won't edit the raw text, however, since the GUI editors in Project Properties will do the job for you.
 
Moh Afifi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:A small clarification.

thanks for clearing it out. that's actually what i meant.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic