Bug 47961 - Cannot instantiate XSSFColor with java.awt.Color as argument
Summary: Cannot instantiate XSSFColor with java.awt.Color as argument
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.5-FINAL
Hardware: PC Windows Vista
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-08 02:00 UTC by Minh Tran
Modified: 2009-10-30 09:10 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:
file:/D:/java/apache/jakarta-poi/poi/trunk/ooxml-lib/ooxml-schemas-1.0.jar

Yegor