package does not exist (Again, I know...)

Hi,

This problem seems to be pretty common, but I didn't find anything that helped me. I'm working on MacOS X, I hope someone can give me an answer or direct to some good ressources on that topic.

Here's the problem:

I'm working through a textbook with exercices, and they provide java-classes to read text--input from the command-line. They're in a folder Prog1Tools, located in ~/System/Library/Java. I chose that folder since one of the classpaths reads: $HOME/Library/Java:$NEXT_ROOT/Library/Java:$NEXT_ROOT/System/Library/Java:

I also tried to put Prog1Tools in the location specified in the first classpath above, but either way, when I compile my program with

import Prog1Tools.IOTools,

I get the error:

HelloXCodeWorld.java:9: package Prog1Tools does not exist

import Prog1Tools.IOTools;

^

1 error

Thanks for suggestions, I'm a born-again Java programmer, and got stuck pretty quickly there....

[981 byte] By [Sapporilloa] at [2007-11-27 2:28:01]
# 1
what a coincidence, as I have the same problem too:I got the Jakarta jar file and have modified class path, but still the package is not recognised!!So c'mmon guys lets help two people by one reply!
Sunny_skya at 2007-7-12 2:39:29 > top of Java-index,Java Essentials,New To Java...
# 2
by the way i found the following, may be useful: http://en.wikipedia.org/wiki/Classpath_%28Java%29
Sunny_skya at 2007-7-12 2:39:29 > top of Java-index,Java Essentials,New To Java...
# 3
anybody? it should be quite easy question for those with a bit of experience. . .
Sunny_skya at 2007-7-12 2:39:29 > top of Java-index,Java Essentials,New To Java...
# 4
I still couldn't solve the problem, so I'm posting the question again...
Sapporilloa at 2007-7-12 2:39:29 > top of Java-index,Java Essentials,New To Java...
# 5
check the following[Hyperlink] http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html [/Hyperlink]
AnanSmritia at 2007-7-12 2:39:29 > top of Java-index,Java Essentials,New To Java...
# 6
Am not sure whether the above url helps you. But you can check for MAC OS
AnanSmritia at 2007-7-12 2:39:29 > top of Java-index,Java Essentials,New To Java...