Re: error from ant script

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

 



2009/3/23 Alexander Kurtakov <akurtako@xxxxxxxxxx>:
> On Monday 23 March 2009 18:53:10 Subhodip Biswas wrote:
>> hi!
>>
>> While trying to package JOSM which is java based and uses ant to compile.
>> ant when called from rpmbuild fails to compile the code saying :
>> ------
>> static import declarations are not supported in -source 1.4
>>     [javac] (try -source 1.5 to enable static import declarations)
>> ------
>> However executing ant separately on source leads to successful compilation.
>> ----
>> What am i missing?
> Try to call ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5
> your_targets instead of only ant.
> This will set both source and target to 1.5.

I've seen this before: it seems that gcj uses source level 1.4 by
default unless you tell it about 1.5, while OpenJDK uses 1.5 by
default.

MEF

-- 
Mary Ellen Foster  --  http://homepages.inf.ed.ac.uk/mef/
Informatik 6: Robotics and Embedded Systems, Technische Universität München
and ICCS, School of Informatics, University of Edinburgh

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux