MudGuard wrote:I found a solution.
file TestOne.java lies in a folder called one (otherwise, package one; would make no sense).
so to find the way from TestOne to one/Dog.java, the classpath needs to contain the folder containing folder one (either relatively referenced by .. or as absolute path)
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Jon>echo %CLASSPATH%
.;C:\Program Files\Java\external_jars\junit4.9b2\junit4.9b2\junit-4.9b2.jar;C:\P
rogram Files\PostgreSQL\pgJDBC;
C:\Documents and Settings\Jon>%CLASSPATH%=%CLASSPATH%;C:\Documents and Settings\
Jon\Desktop\food
'.' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Jon>%CLASSPATH%=%CLASSPATH%,C:\Documents and Settings\
Jon\Desktop\food
'.' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Jon>SET %CLASSPATH%=%CLASSPATH%,C:\Documents and Setti
ngs\Jon\Desktop\food
C:\Documents and Settings\Jon>echo %CLASSPATH%
.;C:\Program Files\Java\external_jars\junit4.9b2\junit4.9b2\junit-4.9b2.jar;C:\P
rogram Files\PostgreSQL\pgJDBC;
C:\Documents and Settings\Jon>