This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes ERROR :not a known variable in the current context Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "ERROR :not a known variable in the current context" Watch "ERROR :not a known variable in the current context" New topic
Author

ERROR :not a known variable in the current context

Noopur Kore
Ranch Hand

Joined: Aug 18, 2012
Posts: 77

I'm getting error while debbuging on my catch(Exception e)

on e it says "e = >"e" is not a known variable in the current context.<" .

Can someone explain me this?
No other error on servlet.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5852
    
    7

Could you post more of the code, perhaps the whole method? Also, exactly which line are you getting the error on? I suspect that 'e' is out of scope where it is being used, or perhaps you have 'e' declared twice, but without seeing more of the code it is hard to tell.


JBoss In Action
 
Consider Paul's rocket mass heater.
 
subject: ERROR :not a known variable in the current context
 
It's not a secret anymore!