Bug 47961

Summary: Cannot instantiate XSSFColor with java.awt.Color as argument
Product: POI Reporter: Minh Tran <mobject>
Component: XSSFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.5-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   

Description Minh Tran 2009-10-08 02:00:56 UTC
The error message when compile is although all necessary jars set   :

 class file for org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColor not found
         new XSSFColor(new java.awt.Color(128, 0, 128));
Comment 1 Yegor Kozlov 2009-10-30 09:10:28 UTC
Check your classpath and make sure ooxml-schemas-1.0.jar is included.

Use the code below to see the actual path to the jar:

        System.out.println(                org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColor.class.getProtectionDomain().getCodeSource().getLocation());

On my machine it prints the following line: