Files a/configure.ac and b/configure.ac differ Files a/libinterp/octave-value/ov-java.cc and b/libinterp/octave-value/ov-java.cc differ Files a/scripts/java/module.mk and b/scripts/java/module.mk differ diff -r a/configure.ac b/configure.ac 2886,2890d2885 < ## Sneak the -framework flag into mkoctfile via LDFLAGS < LDFLAGS="$LDFLAGS -framework JavaVM" < ## According to: http://developer.apple.com/unix/crossplatform.html < ## one must explicitly set the include path. < ## Unfortunately, the include path keeps moving around. 2894c2889 < JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I/System/Library/Frameworks/JavaVM.framework/Home/include -I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers" --- > JAVA_CPPFLAGS="-I${JAVA_HOME}/include 2896d2890 < JAVA_LIBS="-framework JavaVM" diff -r a/libinterp/octave-value/ov-java.cc b/libinterp/octave-value/ov-java.cc 559,560d558 < #if ! defined (__APPLE__) && ! defined (__MACH__) < 580,589d577 < #else < < // FIXME: There exists a problem on the Mac platform that < // octave::dynamic_library lib (jvm_lib_path) < // doesn't work with 'not-bundled' *.oct files. < < if (JNI_GetCreatedJavaVMs (&jvm, 1, &nVMs) == 0 && nVMs > 0) < < #endif < 632,633d619 < #if ! defined (__APPLE__) && ! defined (__MACH__) < 640,649d625 < #else < < if (JNI_CreateJavaVM (&jvm, reinterpret_cast (¤t_env), < vm_args.to_args ()) != JNI_OK) < error ("unable to start Java VM in %s", jvm_lib_path.c_str ()); < < } < < #endif < diff -r a/scripts/java/module.mk b/scripts/java/module.mk 39c39 < ( cd $(srcdir)/scripts/java; "$(JAVAC)" -source 1.3 -target 1.3 -Xlint:-options -d $(abs_top_builddir)/scripts/java $(org_octave_dir)/$( ( cd $(srcdir)/scripts/java; "$(JAVAC)" -Xlint:-options -d $(abs_top_builddir)/scripts/java $(org_octave_dir)/$(