Erro ao criar um arquivo excel a partir do Java POI
Olá eu gostaria de criar um arquivo excel a partir de um código java, coloquei esse código no eclipse, mas nada aconteceu
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import java.io.FileOutputStream;
public class TestPOI1 {
public static void main(String[] args) {
//create the new workbook
Workbook workbook = new HSSFWorkbook();
try {
//create the output stream to save the document on the hard drive
FileOutputStream output = new FileOutputStream("Test1.xls");
//write the file onto the hard drive
workbook.write(output);
//finish it up by closing the document
output.close();
} catch(Exception e) {
e.printStackTrace();
}
}
}
no console, esta mensagem é gravada
Usage: BiffDrawingToXml [options] inputWorkbook Options:
-exclude-workbook exclude workbook-level records
-sheet-indexes output sheets with specified indexes
-sheet-namek output sheets with specified name
e não consigo encontrar meu arquivo do excel no disco rígido ou no projeto do arquivo. obrigado pela ajuda.