So it looks like I totally mis-read r7581 -- the need for reverting any of it
seems quite slim. With the changes I've made over the last couple days, the
main outstanding item for that is the presence of the SWIG/Java code in the
svn-api.jar file. As I mentioned earlier, I'd originally intended only the
non-SWIG .class files to go in there. If we want to follow that division
(still under investigation), the SWIG-dependent code should be moved into a
separate JAR file (svn-swig.jar?). Otherwise, svn-api.jar should probably be
renamed (perhaps to svn-swig.jar anyhow).
Here's what I've found about the current state of the build:
I've confirmed that libsvn_subr and libsvn_delta are now auto-loaded.
The libsvn_swig_java is not copied over into the svn-java installation
directory by the "install-swig-java" build target (as it is for the Python
library).
Even though both apr and aprutil are mentioned in build.conf as deps for
libsvn_swig_java, they do not appear to be getting auto-loaded when loading
libsvn_swig_java from Java using System.loadLibrary(). Thoughts?
dlr@despot:dlr$ (export
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/dlr/src/svn/subversion/bindings/swig/.libs:/usr/local/apr/lib";
java -classpath
.:/home/dlr/src/svn/subversion/bindings/swig/java/build/svn-api.jar test)
Initializing SVN native resources...
Exception in thread "main" java.lang.UnsatisfiedLinkError: apr_initialize
at org.tigris.subversion.swig.coreJNI.apr_initialize(Native Method)
at org.tigris.subversion.swig.core.apr_initialize(core.java:23)
at
org.tigris.subversion.util.NativeResources.initialize(NativeResources.java:100)
at test.main(test.java:9)
- Dan
import org.tigris.subversion.util.NativeResources;
public class test
{
public static void main(String[] argv)
throws Exception
{
System.out.println("Initializing SVN native resources...");
NativeResources.getInstance().initialize();
System.out.println("Success!");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 12 19:44:15 2004