On 2016-12-21 Simon Steiner wrote:
> On 2016-12-20 Jan Tosovsky wrote:
> > On 2016-12-20 Jan Tosovsky wrote:
> > >
> > > I am trying to modify build.xml config to produce bytecode
> > > compatible with JDK 1.7.
> > >
> > > So far I tried:
> > >
> > > (1) compile on JDK 8 with modifying all <javac> tasks to
> > >     <javac target="1.7" ...>
> > > (2) compile on JDK 8 with global param <property
> > >     name="ant.build.javac.target" value="1.7" />
> > > (3) same as above with older Ant version to avoid possible
> > >     issue: https://bz.apache.org/bugzilla/show_bug.cgi?id=59683
> > > (4) compile on JDK 7u80
> > >
> > > Nothing helped. Especially the last item is very suspicious.
> > 
> > While in MANIFEST can be found 'created by' JDK 7, when that main 
> > class is executed in JDK 7, it fails (unsupported major.minor 52).
> 
> Try:
> ant clean all-jar
> java -cp lib/*.jar:./batik-all/target/batik-all-1.9.0-SNAPSHOT.jar
> org.apache.batik.apps.rasterizer.Main -scriptSecurityOff

Uff, thanks a lot. It was 'clean' goal (!)

I was tweaking various settings, but as I can see now those originally built 
classes were never overwritten.

Silly me. It works now. 

Thanks also for those build.xml changes.

Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to