Bug 191696 WordUtil is getScreenResolution()-dependent
WordUtil class, in org.eclipse.birt.report.engine.emitter.wpml package, makes the following call to the getScreenResolution() method: public final static double INCH_PX = java.awt.Toolkit.getDefaultToolkit ( ).getScreenResolution ( ); which makes it dependent on Java runtime being non-headless. When run on JVM with -Djava.awt.headless=true, an java.awt.HeadlessException is thrown. It makes impossible to use BIRT on non-X Linux environment. Maybe there should be a default value of INCH_PX variable?
engine/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java
/*******************************************************************************
 * Copyright (c) 2006 Inetsoft Technology Corp.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Inetsoft Technology Corp  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.engine.emitter.wpml;
import org.eclipse.birt.report.engine.content.IStyle;
import org.eclipse.birt.report.engine.ir.DimensionType;
public class WordUtil