my cal.java inside C:\java\com\ibm\store my control.java in C:\java control.java import cal.java when i type javac control.java, it shows error: ----------------------------------------------- control.java:6: package com.ibm.store does not exist import com.ibm.store.cal; ------------------------------------------------ how to solve it? thanks
Jon Dornback
Ranch Hand
Joined: Apr 24, 2002
Posts: 137
posted
0
here are some things to check: have you compiled the com.ibm.store package? if not, you should be in the directory above com (c:\java in this case) and type at the command prompt: javac com/ibm/store/*.java is the package in your class path? type in the command: set and that will display all your environment variables. see if the current directory is in the classpath variable. if not, add it in. Jon
Originally posted by eric lee: my cal.java inside C:\java\com\ibm\store my control.java in C:\java control.java import cal.java when i type javac control.java, it shows error: ----------------------------------------------- control.java:6: package com.ibm.store does not exist import com.ibm.store.cal; ------------------------------------------------ how to solve it? thanks
use the [CODE] tags - it makes it much easier for people to help you.