Long time since I compiled my java-files manually to classes.
These are the classes:
my.stuff.City
my.stuff.Factory
In these files:
C:/somewhere/my/stuff/City.java
C:/somewhere/my/stuff/Factory.java
Now it’s dead-easy to compile this:
C:/somewhere/> javac my/stuff/City.java my/stuff/Factory.java
But here’s the catch, the current directory is NOT C:/somewhere, but it’s C:/
According to the javac-documentation I should do this:
C:/>javac -sourcepath C:/somewhere my/stuff/Factory.java
error: cannot read: my/stuff/Factory.java
…
Doesn’t work. I tried just about everything I could think of, but I only manage to compile it if the current-directory is the root of the package >:(
This is a documented feature, what am I doing wrong?
