executing classes


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: executing classes

Hybrid View

  1. #1
    a Guest

    executing classes


    is it even possible in java to execute a class located in a different directory??!

  2. #2
    Paul Clapham Guest

    Re: executing classes


    a <albert77@rocketmail.com> wrote in message
    news:3a0b1648$1@news.devx.com...
    >
    > is it even possible in java to execute a class located in a different

    directory??!

    Well, first of all in Java you don't execute a class. You can execute a
    method in a class, provided it's a static method, or you can execute a
    method of an object, which of course belongs to a class. But if this class
    is in a different directory? Sure. You just have to set up your classpath
    to include that directory, and it'll work fine.

    PC2




  3. #3
    a Guest

    Re: executing classes


    thanks Paul--a

    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >
    >a <albert77@rocketmail.com> wrote in message
    >news:3a0b1648$1@news.devx.com...
    >>
    >> is it even possible in java to execute a class located in a different

    >directory??!
    >
    >Well, first of all in Java you don't execute a class. You can execute a
    >method in a class, provided it's a static method, or you can execute a
    >method of an object, which of course belongs to a class. But if this class
    >is in a different directory? Sure. You just have to set up your classpath
    >to include that directory, and it'll work fine.
    >
    >PC2
    >
    >
    >



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