Index: compiler/driver.c
===================================================================
--- compiler/driver.c	(revision 7625)
+++ compiler/driver.c	(working copy)
@@ -13,7 +13,9 @@
 static void print_arglist(void) {
     fprintf(stderr, "options are: file [-o[utput] file]\n"
                     "                  [-s[yntax]]\n"
+#ifdef JAVA_SUPPORT
                     "                  [-j[ava]]\n"
+#endif
                     "                  [-w[idechars]]\n"
                     "                  [-u[tf8]]\n"
                     "                  [-n[ame] class name]\n"
@@ -77,12 +79,14 @@
                 o->name = argv[i++];
                 continue;
             }
+#ifdef JAVA_SUPPORT
             if (eq(s, "-j") || eq(s, "-java")) {
                 o->make_java = true;
                 o->widechars = true;
                 o->make_c = false;
                 continue;
             }
+#endif
             if (eq(s, "-w") || eq(s, "-widechars")) {
                 o->widechars = true;
                 continue;
@@ -176,6 +180,7 @@
                     fclose(o->output_c);
                     fclose(o->output_h);
                 }
+#ifdef JAVA_SUPPORT
                 if (o->make_java) {
                     symbol * b = add_s_to_b(0, s);
                     b = add_s_to_b(b, ".java");
@@ -186,6 +191,7 @@
                     close_generator_java(g);
                     fclose(o->output_java);
                 }
+#endif
             }
             close_analyser(a);
         }

