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

Import error

 
Lydia Su
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the javabook package but the compiler keeps giving me an error "Package javabook not found in import"
why does it keep giving me this???
 
Junilu Lacar
Bartender
Pie
Posts: 7767
62
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check CLASSPATH and make sure that it includes the correct path to javabook. If your java program is in the same directory as javabook, be sure to include ".;" in your CLASSPATH string.
HTH
Junilu

[This message has been edited by JUNILU LACAR (edited May 25, 2001).]
 
Lydia Su
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried that, it didn't work...
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your javabook package is jar'd up, you have to include the actual jar name (add the end of the proper path) in your classpath. Maybe that's it?

Also, if you're using an IDE of some sort, be aware that not all of them use system classpath settings. You would need to look for something like a 'library' to add jars to, or something similar.
[This message has been edited by Mike Curwen (edited May 29, 2001).]
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It SOUNDS like your import statement is coded wrong. Can you show us what you coded, AND what your actual classpath is?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic