Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: javac classpath; where to compile from?
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

Report this thread to moderator Post Follow-up to this message
Old Post
Lew
03-29-08 03:24 AM


Re: javac classpath; where to compile from?
Lew 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

Report this thread to moderator Post Follow-up to this message
Old Post
Mark Space
03-29-08 09:51 AM


Sponsored Links




Last Thread Next Thread Next
Pages (2): « 1 [2]
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Forum Jump:
All times are GMT. The time now is 07:34 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.