|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > import question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|