D
Dmitry Yukelson
Hi all,
I'm trying to create an interactive application which compiles ant
file, and does several other things.
For this purpose I'm using Project and ProjectHelper ant classes.
In addition, I defined my own ant Task, which used native code:
public class IdentityTask extends MatchingTask {
....
private native boolean CallIdentity();
static {
System.loadLibrary("...");
}
......
}
The first compilation is succeeded without any problems, the dll is
loaded and the native code is called. But when the second compilation
request is processed, the following exception is thrown:already loaded in another classloader
Thanks in advance
I'm trying to create an interactive application which compiles ant
file, and does several other things.
For this purpose I'm using Project and ProjectHelper ant classes.
In addition, I defined my own ant Task, which used native code:
public class IdentityTask extends MatchingTask {
....
private native boolean CallIdentity();
static {
System.loadLibrary("...");
}
......
}
The first compilation is succeeded without any problems, the dll is
loaded and the native code is called. But when the second compilation
request is processed, the following exception is thrown:already loaded in another classloader
Thanks in advance