> i have a class file in "c:\sample.class" i want to
> run this class file from my program. How to achieve
> this? i am a newbie kindly bear with me..
the reason you're not getting a straightforward answer is that this is the sort of thing you can find out for yourself in the tutorials, or from your teacher, or a book, or a simple google query. the forum isn't the place for complete novices to learn from, that would be a waste of effort on everybody's part
get reading!
> the reason you're not getting a straightforward
> answer is that this is the sort of thing you can find
> out for yourself in the tutorials, or from your
> teacher, or a book, or a simple google query.
... or because it's hard to understand why you'd want to do what you asked for.
> > the reason you're not getting a straightforward
> > answer is that this is the sort of thing you can
> find
> > out for yourself in the tutorials, or from your
> > teacher, or a book, or a simple google query.
>
> ... or because it's hard to understand why you'd want
> to do what you asked for.
you've never had to invoke methods in one class, from another class?
> > you've never had to invoke methods in one class,
> from another class?
>
> No <:)
presumably all your logic is inside one Main method, and doesn't involve any objects at all then :)
>
> P.S.: Of course, but calling "main" on another class
> looks like a design flaw to me.
well, in all fairness, the OP never asked that. Rene merely suggested it
> > No <:)
>
> presumably all your logic is inside one Main method,
> and doesn't involve any objects at all then :)
Sure. OOP is for girls ...
> > P.S.: Of course, but calling "main" on another class
> > looks like a design flaw to me.
>
> well, in all fairness, the OP never asked that. Rene
> merely suggested it
That's why I dared to ask the OP, see reply #5. It's highly probable the OP wants to do something similar.