If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

executing classes

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.

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
>
>
>