This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page directive import

 
Afzal Hossain
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Post removed. Please see your private messages for the reason.]
[ September 07, 2008: Message edited by: Bear Bibeault ]
 
Afzal Hossain
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I have found that class in default package can not be imported by the import in page directive.It throws a runtime exception from server.
For instance,

where person is a class in default package

Now just wondering is there any way to import class from default package though it is highly recommended not to use package.

Thanks
Afzal
SCJP6
 
Afzal Hossain
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mistake from last post,though it is highly recommended to use package.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot import such classes -- that's why it's important to package your classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic