Index: Makefile.am
===================================================================
--- Makefile.am	(revision 10283)
+++ Makefile.am	(working copy)
@@ -116,9 +116,8 @@
 	: # case where SWIG changes its mind as to which files it generates.
 	-rm -f $(XAPIAN_SWIG_JAVA_SRCS)
 	$(SWIG) $(SWIG_includes) $(SWIG_FLAGS) -c++ \
-	    -java -module Xapian \
+	    -java -module Xapian -package org.xapian \
 	    -o xapian_wrap.cc $(SWIG_mainsource)
-	: # -package org.xapian
 	: # Insert code to automatically load the JNI library.
 	$(PERL) -pi -e 'print "    System.loadLibrary(\"xapian_jni\");\n" if /^\s*swig_module_init/' XapianJNI.java
 	: # Check that all the sources we expected were generated.
