I am trying to compile Bruce Eckel's code in "thinking in Java". I am using Win98 Jdk 1.3. I have a set-up of all my source code in c:\works\java and my classes in c:\works\classes. I did a sample package and import and works fine.
Now trying to compile the following code in "c:\works\java" :
And in "c:\works\java\com\bruceeckel\Simpletest\", there are a bunch of java files.
I enter c:\works\java> javac -d c:\works\classes Leaf.java I'm getting the following error:
Leaf.java:3: package com.bruceeckel.simpletest does not exist import com.bruceeckel.simpletest.*; ^ Leaf.java:7: cannot resolve symbol symbol : class Test location: class Leaf static Test monitor = new Test(); ^ Leaf.java:7: cannot resolve symbol symbol : class Test location: class Leaf static Test monitor = new Test(); ^ 3 errors
I think there is no case sentivity of folder in windows. Rite?
The situation here is that Java is case sensitive. If you've access to a Windows machine, a good way to determine an answer to your question is to go ahead and try it. I just did, and the case of the folders must match that of the package names.