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 6039693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:24:24+00:00 2026-05-23T06:24:24+00:00

i have a java code for send a mail while i am executing the

  • 0

i have a java code for send a mail while i am executing the following error is shown

.\SendEmail.java:5: package javax.mail.Message does not exist
import javax.mail.Message.RecipientType;
                         ^
.\SendEmail.java:6: package javax.mail.internet does not exist
import javax.mail.internet.AddressException;
                          ^
.\SendEmail.java:7: package javax.mail.internet does not exist
import javax.mail.internet.InternetAddress;
                          ^
.\SendEmail.java:8: package javax.mail.internet does not exist
import javax.mail.internet.MimeMessage;

and the another java class for write some values in database, in that the following error will show

                           ^
.\WriteHelper.java:34: cannot find symbol
symbol  : class WorkbookSettings
location: class WriteHelper
                WorkbookSettings wbSettings = new WorkbookSettings();
                ^
.\WriteHelper.java:34: cannot find symbol
symbol  : class WorkbookSettings
location: class WriteHelper
                WorkbookSettings wbSettings = new WorkbookSettings();
                                                  ^
.\WriteHelper.java:38: cannot find symbol
symbol  : class WritableWorkbook
location: class WriteHelper
                WritableWorkbook workbook = Workbook.createWorkbook(file, wbSett
ings);
                ^
.\WriteHelper.java:38: cannot find symbol
symbol  : variable Workbook
location: class WriteHelper
                WritableWorkbook workbook = Workbook.createWorkbook(file, wbSett
ings);
                                            ^
.\WriteHelper.java:40: cannot find symbol
symbol  : class WritableSheet
location: class WriteHelper
                WritableSheet excelSheet = workbook.getSheet(0);
                ^
.\WriteHelper.java:51: cannot find symbol
symbol  : class WritableFont
location: class WriteHelper
                WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10
);
                ^
.\WriteHelper.java:51: cannot find symbol
symbol  : class WritableFont
location: class WriteHelper
                WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10
);
                                             ^
.\WriteHelper.java:51: cannot find symbol
symbol  : variable WritableFont
location: class WriteHelper
                WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10
);
                                                          ^
.\WriteHelper.java:53: cannot find symbol
symbol  : class WritableCellFormat
location: class WriteHelper
                times = new WritableCellFormat(times10pt);
                            ^
.\WriteHelper.java:58: cannot find symbol
symbol  : class WritableFont
location: class WriteHelper
                WritableFont times10ptBoldUnderline = new WritableFont(
                ^
.\WriteHelper.java:58: cannot find symbol
symbol  : class WritableFont
location: class WriteHelper
                WritableFont times10ptBoldUnderline = new WritableFont(
                                                          ^
.\WriteHelper.java:59: cannot find symbol
symbol  : variable WritableFont
location: class WriteHelper
                                WritableFont.TIMES, 10, WritableFont.BOLD, false
,
                                ^
.\WriteHelper.java:59: cannot find symbol
symbol  : variable WritableFont
location: class WriteHelper
                                WritableFont.TIMES, 10, WritableFont.BOLD, false
,
                                                        ^
.\WriteHelper.java:60: cannot find symbol
symbol  : variable UnderlineStyle
location: class WriteHelper
                                UnderlineStyle.SINGLE);
                                ^
.\WriteHelper.java:61: cannot find symbol
symbol  : class WritableCellFormat
location: class WriteHelper
                timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderli
ne);
                                         ^
.\WriteHelper.java:65: cannot find symbol
symbol  : class CellView
location: class WriteHelper
                CellView cv = new CellView();
                ^
.\WriteHelper.java:65: cannot find symbol
symbol  : class CellView
location: class WriteHelper
                CellView cv = new CellView();
                                  ^
.\WriteHelper.java:90: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label=new Label(j,k,JavaSamp.date.get(z),timesBold
Underline);
                        ^
.\WriteHelper.java:90: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label=new Label(j,k,JavaSamp.date.get(z),timesBold
Underline);
                                        ^
.\WriteHelper.java:92: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label1=new Label(m,k,JavaSamp.motherboard.get(z),t
imesBoldUnderline);
                        ^
.\WriteHelper.java:92: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label1=new Label(m,k,JavaSamp.motherboard.get(z),t
imesBoldUnderline);
                                         ^
.\WriteHelper.java:94: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label2=new Label(p,k,JavaSamp.processorid.get(z),t
imesBoldUnderline);
                        ^
.\WriteHelper.java:94: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label2=new Label(p,k,JavaSamp.processorid.get(z),t
imesBoldUnderline);
                                         ^
.\WriteHelper.java:96: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label3=new Label(pn,k,JavaSamp.processorname.get(z
),timesBoldUnderline);
                        ^
.\WriteHelper.java:96: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label3=new Label(pn,k,JavaSamp.processorname.get(z
),timesBoldUnderline);
                                         ^
.\WriteHelper.java:98: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label4=new Label(bn,k,JavaSamp.biosname.get(z),tim
esBoldUnderline);
                        ^
.\WriteHelper.java:98: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label4=new Label(bn,k,JavaSamp.biosname.get(z),tim
esBoldUnderline);
                                         ^
.\WriteHelper.java:100: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label5=new Label(bid,k,JavaSamp.biosid.get(z),time
sBoldUnderline);
                        ^
.\WriteHelper.java:100: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label5=new Label(bid,k,JavaSamp.biosid.get(z),time
sBoldUnderline);
                                         ^
.\WriteHelper.java:102: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label6=new Label(bman,k,JavaSamp.biosname.get(z),t
imesBoldUnderline);
                        ^
.\WriteHelper.java:102: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label6=new Label(bman,k,JavaSamp.biosname.get(z),t
imesBoldUnderline);
                                         ^
.\WriteHelper.java:104: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label7=new Label(cval,k,JavaSamp.install_countlist
.get(z),timesBoldUnderline);
                        ^
.\WriteHelper.java:104: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label7=new Label(cval,k,JavaSamp.install_countlist
.get(z),timesBoldUnderline);
                                         ^
.\WriteHelper.java:106: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label8=new Label(8,k,JavaSamp.maxval,timesBoldUnde
rline);
                        ^
.\WriteHelper.java:106: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label8=new Label(8,k,JavaSamp.maxval,timesBoldUnde
rline);
                                         ^
.\WriteHelper.java:108: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label9=new Label(9,k,JavaSamp.maxsysval,timesBoldU
nderline);
                        ^
.\WriteHelper.java:108: cannot find symbol
symbol  : class Label
location: class WriteHelper
                        Label label9=new Label(9,k,JavaSamp.maxsysval,timesBoldU
nderline);
                                         ^
.\WriteHelper.java:117: cannot find symbol
symbol  : class Label
location: class WriteHelper
                Label label;
                ^
.\WriteHelper.java:118: cannot find symbol
symbol  : class Label
location: class WriteHelper
                label = new Label(column, row, s, timesBoldUnderline);

Why this type of errors are araise if any possibility to overcome it

  • 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-05-23T06:24:25+00:00Added an answer on May 23, 2026 at 6:24 am

    These are class path errors. The classes you are using should be present in the classpath of the JVM.

    Let’s take the following example

    .\WriteHelper.java:40: cannot find symbol
    symbol  : class WritableSheet
    location: class WriteHelper
                    WritableSheet excelSheet = workbook.getSheet(0);
                    ^
    

    This message means: In WriteHelper.java, line 40, you are referring to a class WritableSheet but the compiler is unable to locate where this class is.

    The compiler searches for the classes used in your program in the classpath.
    Claspath is the path (set of directories or jar files) that the compiler and the runtime look when they encounter a class that they “don’t know”. (Class they “know” are those that are part of the java language (classes in java.lang or java.math for example). These are in the classpath by default.

    You have to specify all the classes you are using in your class in the classpath.

    WritableSheet is from the jexcel library (If i am not wrong). So you have to include this library in your class path while compiling the class and while running the class.

    You do so using the -cp option of javac and java:

    javac -cp ./lib/jxl.jar MyClass.java
    

    ./lib/jxl.jar is what I assume as the location of the jExcel library. This cal be anything, just make sure you give the correct path here.

    You run the class as

    java -cp ./lib/jxl.jar MyClass
    

    If you are using an IDE (You should), you have add the location of the jxl.jar to the IDE’s classpath.

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

Sidebar

Related Questions

I have the following Java 6 code: Query q = em.createNativeQuery( select T.* +
I am writing a piece of Java code that needs to send mail to
Recently i have follow the Sun online guide on Java Mail API to send
I have some Java code that uses curly braces in two ways // Curly
I have this java code: <script src=http://www.google.com/jsapi></script> <script type=text/javascript> google.load(jquery, 1.2.6); $(a#more).click(function() { $(#info_box).show(blind,
Let's say I have some Java code: public class SomeClass { static { private
I have a java script code that works fine when run through a browser,
I'm using Eclipse 3.4 and have configured the Java code formatter with all of
In Eclipse IDE how do you customize the Java code style formatter to have
I have to ship some groovy code to some users that have only java

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.