Thanks for your replies. I would hop to avoid package my class and functions in an external Jar… but why not…
To try to elaborate,
I have a public class :
package mypackage.utils.tests;
public final class myTest_SVC
{
public static final void myTest(IData pipeline) throws ServiceException {
}
public static void helloWorld(String text)
{
...
}
final static myTest_SVC _instance = new myTest_SVC();
static myTest_SVC _newInstance() { return new myTest_SVC(); }
static myTest_SVC _cast(Object o) { return (myTest_SVC)o; }
}
Now, from another class of package (in another directory), I would like to access helloWorld() function :
package mypackage.utils.calls;
import mypackage.utils.tests.myTest_SVC;
public final class myCall_SVC
{
public static final void myCall(IData pipeline) throws ServiceException {
// ... calling myTest_SVC.helloWorld(...);
}
}
From the Import clause, I meet this error :
The source was saved, but was not compiled due to the following errors:
error: cannot find symbol
import mypackage.utils.tests.myTest_SVC;
…^
symbol: class myTest_SVC
location: class tests
1 error
Any idea ?
Regards
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB