From 9344c4bd8a3339f23496e340ab33710bbb2a531f Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 10 Mar 2008 07:21:10 +0000 Subject: [PATCH] Changed to use INKSCAPE_JAVADIR --- src/bind/javabind.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp index a25be353e..2710efcda 100644 --- a/src/bind/javabind.cpp +++ b/src/bind/javabind.cpp @@ -22,6 +22,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include #include @@ -42,6 +45,7 @@ #include "javabind.h" #include "javabind-private.h" +#include #include #include @@ -289,7 +293,8 @@ static void getJavaRoot(String &javaroot) if (slashPos) *slashPos = '\0'; javaroot = exeName; - javaroot.append("\\share\\java"); + javaroot.append("\\"); + javaroot.append(INKSCAPE_JAVADIR); } @@ -425,7 +430,7 @@ static CreateVMFunc getCreateVMFunc() static void getJavaRoot(String &javaroot) { - javaroot = BR_DATADIR("/java"); + javaroot = INKSCAPE_JAVADIR; } #endif -- 2.30.2