> I would like to compile and execute (run) without changing directories.
> Currently, however, I get the following error:
[quoted text clipped - 29 lines]
>
> Thufir

Signature
Knute Johnson
email s/nospam/linux/
------->>>>>>http://www.NewsDem
> You can't classpath your way out of this problem. You must be in a
> directory that is above the packages you wish to access.
Thanks,
Thufir
Thufir wrote:
>> I would like to compile and execute (run) without changing
>> directories. Currently, however, I get the following error:
>> ...
>> how can I do this without changing directories?
> You can't classpath your way out of this problem. You must be in a
> directory that is above the packages you wish to access.
Actually, that isn't necessary.
> You can't point your classpath at source files only .class files and .jars.
However, there is an option to javac to do exactly that:
> -sourcepath sourcepath
> Specify the source code path to search for class or interface definitions.
> As with the user class path, source path entries are separated by colons (:)
> and can be directories, JAR archives, or ZIP archives. If packages are used,
> the local path name within the directory or archive must reflect the package name.
<http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html#options>

Signature
Lew
Mark Space - 29 Mar 2008 06:04 GMT
>> -sourcepath sourcepath
>> Specify the source code path to search for class or interface
[quoted text clipped - 3 lines]
>> directory or archive must reflect the package name.
> <http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html#options>
One small point:
<http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html>
-sourcepath sourcepath
Specify the source code path to search for class or interface
definitions. As with the user class path, source path entries are
separated by semicolons (;) and can be directories, JAR archives, or ZIP
archives. If packages are used, the local path name within the directory
or archive must reflect the package name.
Note the Windows versions use a ; rather than : like Unix and Solaris