Multiple sourcepaths


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Multiple sourcepaths

  1. #1
    Prabhakar Guest

    Multiple sourcepaths


    On NT, how do i speciyf multiple sourepaths in command line for packages with
    -sourcepath options for javac?

  2. #2
    Kent Guest

    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?



  3. #3
    Prabhakar Guest

    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?

    >



  4. #4
    Jo Desmet Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center