Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8500583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:59:06+00:00 2026-06-11T00:59:06+00:00

I am using the jxl package for creating a excel file and export it

  • 0

I am using the jxl package for creating a excel file and export it to SD card through my android application. I have added the jxl.jar to my referenced libraries in my application package in eclipse.

But still when I run the application, it is force closed and I get the below error in logcat

09-10 00:10:31.242: E/dalvikvm(321): Could not find class ‘jxl.WorkbookSettings’, referenced from method h.pkg.main.ExportActivity$2.onClick

Please see below my code for reference..

        export.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub
            String Fnamexls="Report-" + tname + ".xls";
            String Fnamehtml="Report-" + tname + ".htm";
            File sdCard = Environment.getExternalStorageDirectory();
            File directory = new File (sdCard.getAbsolutePath() + "/TripManager");
            directory.mkdirs();

            if (fityp == 0){
                File file = new File(directory, Fnamexls); 

                WorkbookSettings wbSettings = new WorkbookSettings();

                wbSettings.setLocale(new Locale("en", "EN"));

                WritableWorkbook workbook;
                try {
                    workbook = Workbook.createWorkbook(file, wbSettings);
                    workbook.createSheet("Report", 0);
                    WritableSheet excelSheet = workbook.getSheet(0);
                    createExcel(excelSheet);
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                } catch (WriteException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }

Am getting the class not found error when creating the WorkbookSettings obeject wbSettings in the above code. Please let me know how to resolve this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:59:08+00:00Added an answer on June 11, 2026 at 12:59 am

    Go to the project properties (right click the project -> Properties, assuming you are in Eclipse), go to Java Build Path, and to the Order and Export tab. Make sure that the checkbox next to jxl.jar is checked.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an excel file using jxl. I'd like to name the sheets with
I am using JXL to write an excel file of 50000 rows and 30
I'm trying to create a new Excel file using jxl, but am having a
I have to insert image in to the excel cell using jxl api I
I have learnt to read and write an Excel file using a Java program
I'm using jxl(a Java based API for MS excel file manipulation) to create excel
I am trying to remove sheets from an existing excel file using jxl api.
Here is the code that generates .xls file using JXL: public void generateXls(String fileName,
I am writing an Excel File using Apache POI. I want to write in
Using android 2.3.3, I have a background Service which has a socket connection. There's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.