Previous: , Up: Other GNU Tools   [Contents][Index]


9.5 Java

Automake provides some minimal support for Java compilation with the ‘JAVA’ primary.

Any .java files listed in a ‘_JAVA’ variable will be compiled with JAVAC at build time. By default, .class files are not included in the distribution.

Currently Automake enforces the restriction that only one ‘_JAVA’ primary can be used in a given Makefile.am. The reason for this restriction is that, in general, it isn’t possible to know which .class files were generated from which .java files – so it would be impossible to know which files to install where.