DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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
    >
    >
    >



Bookmarks

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


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


Sponsored Links