You don't need to remove the main method from any of the classes in your package. When you run a Java app you have to specify which class to run, so it doesn't matter if other classes contain a main method.

The only change you might have to make is specifying "public" for methods that you want to be called from outside your package (and removing "public" from methods that you don't want to be accessible).

By the way, I'd suggest checking out the tutorials on java.sun.com, they are pretty good.

Cheers
Gary

On 7/21/05, Chavoux Luyt <[EMAIL PROTECTED]> wrote:

Thanks for all the advice. OK, the next newbie question.

After testing the app (the 3 java files in the RFMod package) I want
to include this package in a larger application. To do that, I
understand  that I should remove the "main" method from this package
(as I'll use the main function/method of the new main program).

Is there any other gotchas or changes I should remember to make to the
code if I want to import the package into another app?

Regards
Chavoux

Reply via email to