Posted By:
Robert_Lybarger
Posted On:
Wednesday, May 24, 2006 07:18 AM
Umm... what? You'll need to ask a question in a more java-like fashion. I am going to guess, though, that you are asking this: "I have a static method 'func' in a class called 'MyClass' in one file (MyClass.java), and I want to call that static method from a separate program." There are two ways... just add the file for that class to your project, or create a jar file with that class and have it referenced by the CLASSPATH when your other program runs. Either way, you need to use an "import" line (or else use a fully-resolved name for the class) to support calling "MyClass.func(...)". If that isn't what you want, ask a better question.