Page 1 of 1

Creatin a Jar in eclipse - Ant error, dont find a logger

PostPosted: Tue Apr 12, 2011 12:42 am
by smer4
As i try to make a jar in Eclipse with ant tool i gain many those errors:
Code: Select all
cannot find symbol
    [javac] symbol  : class Logger
    [javac] location: class org.docx4j.convert.in.Doc
    [javac]    private static Logger log = Logger.getLogger(Doc.class);

i m 100% sure that log4j-1.2.15.jar is in Maven Dependencies.
do i someth wrong 0o

Re: Creatin a Jar in eclipse - Ant error, dont find a logger

PostPosted: Tue Apr 12, 2011 12:49 am
by jason
I build docx4j with ant, but from a command line, not from eclipse.

You'll need to edit <property name="m2Repository" value="../../.m2/repository"/> as appropriate in the build.xml file.

Or in Eclipse you can export a new build.xml file, which will generate an appropriate class path for you (assuming eclipse itself is happy with your build path).

Re: Creatin a Jar in eclipse - Ant error, dont find a logger

PostPosted: Tue Apr 12, 2011 1:07 am
by smer4
Yes, i have found, thanks a lot.
The path from Preferences->Maven->user settings->Local Repository.
Maybe you 'd want to add this tohttp://dev.plutext.org/trac/docx4j/wiki/DevEnv