Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding a class file from an import statement

 
Natesh Kurup
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i have an import statement
import org.apache.turbine.util.DynamicURI; which is giving me build error as it cannot find the appropriate jar file in the classpath ( I think so ).

Can anybody pls suggest where can i find the concerned jar file ? also generally how do i find the related jar file from an import statement similar like one above

Thanks in advance.

Natesh
 
Shakthi Anuradha
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi see the class that you try to use declaraed as a public if not that may be the errer
 
Natesh Kurup
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

thanks for your reply. actually it is public and it might be in one of the many jar files. i need to figure out which jar file is it ?

any idea how do i do it ?

Thanks in advance

Natesh
 
louise rochford
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I have a problem like this I stick the missing fully qualified class name into google & let it tell me where it is
In this case, it's in the jakarta-turbine-2 2.3.1.jar, which is can be found at the jakarta website.

regards,
Louise
 
Natesh Kurup
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a ton
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bookmark this: http://www.jarhoo.com/ I just entered the "DynamicURI" part and got:

Amazing!
[ December 03, 2004: Message edited by: Stan James ]
 
Saf Syed
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Stan; jarhoo is a wonderful tool to find the class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic