-
executing classes
is it even possible in java to execute a class located in a different directory??!
-
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
-
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
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