-
Multiple sourcepaths
On NT, how do i speciyf multiple sourepaths in command line for packages with
-sourcepath options for javac?
-
Re: Multiple sourcepaths
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?
-
Re: Multiple sourcepaths
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?
>
-
Re: Multiple sourcepaths
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?
> >
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks