--- a/libjayatana/Makefile
+++ b/libjayatana/Makefile
@@ -52,7 +52,7 @@
 # se definen banderas de compilacion
 JAYATANA_CFLAGS=-I. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux \
 	$(shell pkg-config --cflags glib-2.0 gio-2.0 dbusmenu-glib-0.4 xt) \
-	-L${JAVA_HOME}/jre/lib/${JAVA_ARCH} -L${JAVA_HOME}/jre/lib/${JAVA_ARCH}/xawt
+	-L${JAVA_HOME}/lib -L${JAVA_HOME}/jre/lib/${JAVA_ARCH}/xawt
 # se definen librerias
 JAYATANA_LIBS=$(shell pkg-config --libs glib-2.0 gio-2.0 dbusmenu-glib-0.4 xt) \
 	-ljawt
--- a/libjayatanaag/Makefile
+++ b/libjayatanaag/Makefile
@@ -52,7 +52,7 @@
 # se definen banderas de compilacion
 JAYATANA_CFLAGS=-I. -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux \
 	$(shell pkg-config --cflags glib-2.0 gio-2.0 dbusmenu-glib-0.4 xt) \
-	-L${JAVA_HOME}/jre/lib/${JAVA_ARCH}
+	-L${JAVA_HOME}/lib
 # se definen librerias
 JAYATANA_LIBS=$(shell pkg-config --libs glib-2.0 gio-2.0 dbusmenu-glib-0.4 xt) \
 	-ljawt
