Adicionei o jar do POI (poi.apache.org) ao meu projeto do genesis (Usei o EmptyProject do exemplo) no NetBeans faz os imports normalmente e nao apresenta erro, mas na hora do Build ele nao encontra as classes necessarias.
Erro:
Created dir: /Users/NetBeansProjects/ITGG/modules/shared/target/hibernate
(XDocletMain.start 47 ) Running <hibernate/>
Generating mapping file for br.com.itgg.databeans.Usuario.
br.com.itgg.databeans.Usuario
Generating mapping file for br.com.itgg.databeans.Chamado.
br.com.itgg.databeans.Chamado
(XDocletMain.start 47 ) Running <genesishibernatecfg/>
Generating hibernate.cfg.xml configuration file
Creating /Users/NetBeansProjects/ITGG/modules/shared/target/hibernate/.timestamp
shared:hibernate-doclet-remote:
shared:hibernate-doclet-both:
shared:hibernate-doclet:
shared:compile:
client:define-conditions:
client:master-clean:
client:additional-clean:
client:clean:
client:pre-define-classpath:
client:check-classpath-conditions:
client:define-overriden-classpath:
client:define-classpath-with-extensions:
client:define-standard-classpath:
client:define-classpath:
client:javac:
Created dir: /Users/NetBeansProjects/ITGG/modules/client/target/classes
Compiling 13 source files to /Users/NetBeansProjects/ITGG/modules/client/target/classes
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:14: package org.apache.poi.hssf.usermodel does not exist
import org.apache.poi.hssf.usermodel.HSSFCell;
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:15: package org.apache.poi.hssf.usermodel does not exist
import org.apache.poi.hssf.usermodel.HSSFRichTextString;
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:16: package org.apache.poi.hssf.usermodel does not exist
import org.apache.poi.hssf.usermodel.HSSFRow;
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:17: package org.apache.poi.hssf.usermodel does not exist
import org.apache.poi.hssf.usermodel.HSSFSheet;
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:18: package org.apache.poi.hssf.usermodel does not exist
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:26: cannot find symbol
symbol : class HSSFWorkbook
location: class br.com.itgg.util.Poi
HSSFWorkbook workbook = null;
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:32: cannot find symbol
symbol : class HSSFWorkbook
location: class br.com.itgg.util.Poi
workbook = new HSSFWorkbook(file);
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:49: cannot find symbol
symbol : class HSSFSheet
location: class br.com.itgg.util.Poi
HSSFSheet sheet = workbook.getSheetAt(0);
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:54: cannot find symbol
symbol : class HSSFRow
location: class br.com.itgg.util.Poi
HSSFRow row = sheet.getRow(x);
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:60: cannot find symbol
symbol : class HSSFCell
location: class br.com.itgg.util.Poi
HSSFCell cell = row.getCell((short) 0);
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:64: cannot find symbol
symbol : class HSSFRichTextString
location: class br.com.itgg.util.Poi
HSSFRichTextString status = cell.getRichStringCellValue();
/Users/NetBeansProjects/ITGG/modules/client/src/br/com/itgg/util/Poi.java:67: cannot find symbol
symbol : class HSSFRichTextString
location: class br.com.itgg.util.Poi
HSSFRichTextString descricao = cell.getRichStringCellValue();
12 errors
/Users/NetBeansProjects/ITGG/nbproject/nbjdk.xml:8: The following error occurred while executing this line:
/Users/NetBeansProjects/ITGG/master_build.xml:777: The following error occurred while executing this line:
/Users/NetBeansProjects/ITGG/master_build.xml:208: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)
Preciso alterar algo no xml de build ? Alguem ja passou por isso ?
Valeu