Bug 62174

Summary: class org.openxmlformats.schemas.wordprocessingml.x2006.main.STHeightRule not found in jar file
Product: POI Reporter: Camilo Vasquez <camilo.vasquez>
Component: XWPFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: critical CC: camilo.vasquez
Priority: P2    
Version: 3.17-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Camilo Vasquez 2018-03-13 09:02:40 UTC
Trying to set row heigth of a table with code like this:

int twipsPerInch =  1440;
tableRowTwo.setHeight((int)(twipsPerInch*1/10)); //set height 1/10 inch.
tableRowTwo.getCtRow().getTrPr().getTrHeightArray(0).setHRule(STHeightRule.EXACT); 

The complier can't find the class STHeightRule.class

If we get into the jar contents (poi-ooxml-schemas-3.17.jar) the STHeightRule.Enum.class appears but the STHeightRule.class doesn't
Comment 1 Nick Burch 2018-03-13 09:17:14 UTC
As per http://poi.apache.org/faq.html#faq-N10025 , could you please write a short junit unit test that uses the height rule, so the extra schema class will get auto-included in future?
Comment 2 Dominik Stadler 2018-04-02 17:19:44 UTC
Added some simple unit tests for 4.0.0 via r1828180 which will cause this classes to be included in the poi-ooxml-schemas jar file.