Bug 62174 - class org.openxmlformats.schemas.wordprocessingml.x2006.main.STHeightRule not found in jar file
Summary: class org.openxmlformats.schemas.wordprocessingml.x2006.main.STHeightRule not...
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.17-FINAL
Hardware: PC All
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2018-03-13 09:02 UTC by Camilo Vasquez
Modified: 2018-04-02 17:19 UTC (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
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.

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.