Thread: import question

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    8
    Rep Power
    0

    import question


    At the top of my java program is a series of import statements.

    here they are:

    import java.io.*
    import java.util.*
    import java.sql.*
    import java.jdbc.*

    I get an error that states that java.io doesn't exist. How does java know where to look for the stuff that it is importing? Is it in the classpath?
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Ya, there's a tools.jar file that needs to be in your classpath. It should be in the j2sdk/lib directory.

    If that's not in your classpath you should be getting errors on the other packages, too, though.
    -james

IMN logo majestic logo threadwatch logo seochat tools logo