bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JAVAROOT was already defined


From: Simon Josefsson
Subject: Re: JAVAROOT was already defined
Date: Fri, 19 Mar 2004 23:10:37 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Alexandre Duret-Lutz <address@hidden> writes:

>>>> "Simon" == Simon Josefsson <address@hidden> writes:
>
> [...]
>
>  Simon> I'm continuing trying to get automake to build a JAR from some *.java
>  Simon> files.  I think it would be nice with an example for this in the
>  Simon> manual.  OTOH, perhaps it is libtool that should handle JAR?
>
> No idea, I don't know java.  The only jar I ever built was a
> pottery jar, and that was very long ago...

Same here. :-)

I think they are pretty much the Java equivalent of *.ar.

>  Simon> I get the following error on 'make install' on the attached
>  Simon> Makefile.am.  I don't understand where this *.class stuff comes from.
>
> The variable libidn_jar_JAVA lists files that must be compiled
> and installed in $(libidn_jardir).  Obviously the rule assumes
> that *.java files get compiled as *.class in the current
> directory.
>
>  Simon> I even tried prepending all targets with 'noinst_' but no change.  
>
> Do you mean noinst_libidn_jar_JAVA or noinst_JAVA?  The former
> is a mistake, and the latter works for me as I'd expect: the
> files listed in $(noinst_JAVA) are compiled but not installed.

Ah, I see.  I wanted noinst_JAVA, thanks.

>  Simon> The *.class files are located in gnu/inet/encoding/, 
>
> No idea why.

The sources contain a 'package gnu.inet.encoding;' statement.  The
java compiler puts such files into gnu/inet/encoding/$class.class by
default.

Perhaps it might be good to state that "packaged" *.java files are not
supported by the JAVA directive, or add some logic to discover which
*.class files are generated from each *.java file.

Thanks,
Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]