title: Log4j PropertyConfigurator.configure() will not accept a string in eclipse
body: <p>I have a strange issue, probably something simple but I've been googling for 20 mins now with no resolution</p>
  
  <p>I'm trying to use log4j in Eclipse. I downloaded the latest zip and added to my classpath. I have created the properties file by copying from a tutorial. The properties file is in the root folder of my project and is named "log4j.properties". The file contains </p>
  
  <pre><code>#define the console appender
  log4j.appender.consoleAppender = org.apache.log4j.ConsoleAppender
  
  # now define the layout for the appender
  log4j.appender.consoleAppender.layout = org.apache.log4j.PatternLayout
  log4j.appender.consoleAppender.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
  
  # now map our console appender as a root logger, means all log messages will go to this     appender
  log4j.rootLogger = DEBUG, consoleAppender
  </code></pre>
  
  <p>My class is as follows, eclipse has the following error at the PropertyConfigurator.configure() line. 
  Multiple markers at this line
  - Syntax error on token ""log4j.properties"", delete this token
  - Syntax error on token(s), misplaced construct(s) </p>
  
  <p>However the api for log4j shows that propertyconfigurator should accept a string. Any suggestions?
   - </p>
  
  <pre><code>package org.dnsdojo.ryanhost.GA.MuPlusOne;
  
  import java.util.Random;
  import org.apache.log4j.Logger;
  import org.apache.log4j.PropertyConfigurator;
  
  
  public class Genome
  {
  private static Logger logger = Logger.getLogger(Genome.class);
  PropertyConfigurator.configure("log4j.properties");
  byte[] genome;
  Random rng = new Random();
  String genomeString = "";
  
  public Genome ( int stringLength, int motorSet )
  {
      genome = new byte[ stringLength * 7 * motorSet]; // stringLength depends on how many bytes you wish to have. For the arpibot this is dependant on the number of sensor readings taken
      for (int i = 0; i &lt; genome.length; i++)
      {
          genome[i] = (byte)rng.nextInt(2);
          genomeString += genome[i];
      }
      logger.debug(genomeString);     
  }
  
  public byte[] getGenome()
  {
      return genome;
  }
  
  public byte[] mutate (float mutationStep)
  {
      return genome;                                  //placeholder
  }
  
  }
  </code></pre>