On NT, how do i speciyf multiple sourepaths in command line for packages with
-sourcepath options for javac?
Printable View
On NT, how do i speciyf multiple sourepaths in command line for packages with
-sourcepath options for javac?
Hi,
I think you just need to seperate the paths with semi-colons. eg.
-sourcepath C:\path1;C:\path2
Cheers,
Kent
"Prabhakar" <prabhakar_rao@hp.com> wrote:
>
>On NT, how do i speciyf multiple sourepaths in command line for packages
with
>-sourcepath options for javac?
Hi,
I figured out the solution to my question which is different from your
suggestion. Just for info:
1. The -sourcepath c:\path1;c:\path2 does not work as it is not able to resolve
it like unix which i too assumed it would.
2. My solution: javac -classpath C:\parent_to_path1_path2 works great!
Thanx.
Prabhakar.
"Kent" <kentcb@hotmail.com> wrote:
>
>Hi,
>
>I think you just need to seperate the paths with semi-colons. eg.
>
>-sourcepath C:\path1;C:\path2
>
>Cheers,
>
>Kent
>
>
>
>"Prabhakar" <prabhakar_rao@hp.com> wrote:
>>
>>On NT, how do i speciyf multiple sourepaths in command line for packages
>with
>>-sourcepath options for javac?
>
There are many nice solutions to this.
Things to considder:
1./ make different directories per jar file you want to make and one
separate dir for your classes that will not be part of a library (jar1/
jar2/ classes/), this will be the output directory for all your class files.
2./ make one common java directory, and within this java directory, the
directory structure should follow the one made by your package naming.
(java/ java/com/mycomp/module1 ...)
3./ do not use -sourcepath, but provide the fully qualified names for your
source files.
4./ considder to use different javac's for each packages. be carefull with
dependencies, as it could be nesesairy to include the classes/jar from a
previous compile with 'javac' into the classpath.
"Prabhakar" <rao_prao@yahoo.com> wrote in message
news:39dcc8d4$1@news.devx.com...
>
> Hi,
> I figured out the solution to my question which is different from your
> suggestion. Just for info:
> 1. The -sourcepath c:\path1;c:\path2 does not work as it is not able to
resolve
> it like unix which i too assumed it would.
> 2. My solution: javac -classpath C:\parent_to_path1_path2 works great!
> Thanx.
> Prabhakar.
>
> "Kent" <kentcb@hotmail.com> wrote:
> >
> >Hi,
> >
> >I think you just need to seperate the paths with semi-colons. eg.
> >
> >-sourcepath C:\path1;C:\path2
> >
> >Cheers,
> >
> >Kent
> >
> >
> >
> >"Prabhakar" <prabhakar_rao@hp.com> wrote:
> >>
> >>On NT, how do i speciyf multiple sourepaths in command line for packages
> >with
> >>-sourcepath options for javac?
> >
>