Code Comments
Programming Forum and web based access to our favorite programming groups.Thufir wrote: Knute Johnson wrote: > 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.[/color ] 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 use d, > the local path name within the directory or archive must reflect the package name. <[url]http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html#options[/url ]> -- Lew
Post Follow-up to this messageLew wrote: > <http://java.sun.com/javase/6/docs/t...dows/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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.