Posts Tagged ‘java’

fix CSSToFOPNew.java in css2xslfo

if (configFile != null)
{
  /*
  fop.getUserAgent().setUserConfig
  (
    new DefaultConfigurationBuilder().buildFromFile(configFile)
  );
  fop.getUserAgent().initUserConfig();
  */

  fop.getUserAgent().getFactory().setUserConfig(configFile);
}

java -classpath in combination with java -jar

Since I always forget about that damn detail, it’s time to write it down! Whenever you need to give -classpath parameters at start time, be sure not to use the -jar option at the same time! Go for the main class in the jar instead!