5 Errors Left: "Cannot find symbol variable "

I think I have almost completed my error fixing but I cannot seem to figure out how to fix these last few errors I have.
Here are my errors:
--------------------Configuration: MadrigalRPA6 - JDK version 1.6.0_02 <Default> - <Default>--------------------
E:\MadrigalR\MadrigalRPA6\src\MadrigalRPA6.java:113: cannot find symbol
symbol : variable size
location: class ServicesArray
servicesArray = new PetService[size];
^
E:\MadrigalR\MadrigalRPA6\src\MadrigalRPA6.java:115: cannot find symbol
symbol : variable io
location: class ServicesArray
int size = io.readInt("How many services do you have to enter?");
^
E:\MadrigalR\MadrigalRPA6\src\MadrigalRPA6.java:123: cannot find symbol
symbol : variable number
location: class ServicesArray
for(int i = 0; i < number; ++i)
^
E:\MadrigalR\MadrigalRPA6\src\MadrigalRPA6.java:135: cannot find symbol
symbol : variable number
location: class ServicesArray
for(int i = 0; i < number; ++i)
^
E:\MadrigalR\MadrigalRPA6\src\MadrigalRPA6.java:144: cannot find symbol
symbol : variable io
location: class ServicesArray
io.writeInfo(info);
^
5 errors
Process completed.
* @(#)MadrigalRPA6.java
* MadrigalRPA6 application
* @author
* @version 1.00 2007/11/5
*     Program Purpose: This program is designed to store available services for
*  Dr. Doolittle's Mobile Pet Clinic.
import staugIO.StaugIO;
//DECLARE PET SERVICES CLASS
class PetService
private String ServiceCode = " ";
private String ServiceName = " ";
private String ServiceDescription = " ";
private String ServiceType = " ";
private double price = 0.00;
private StaugIO io = new StaugIO();
//CONSTRUCTOR
public PetService()
//END CONSTRUCTOR
//SET PET SERVICES NAME
public void setServiceCode()
     ServiceCode = io.readString("Enter the service code");
}//END setServiceCode()
//SET SERVICE NAME
public void setServiceName()
     ServiceName = io.readString("Enter the service name");
}//END setServiceName()
//SET SERVICE DESCRIPTION
public void setServiceDescription()
     ServiceDescription = io.readString("Enter the service description");
}//END setServiceDescription
//SET SERVICE TYPE
public void setServiceType()
     ServiceType = io.readString("Enter the service type");
}//END setServiceType()
//SET SERVICE PRICE
public void setPrice()
     price = io.readDouble("Enter the service price");
}//END setPrice()
//GET PET SERVICE NAME
public String getServiceCode()
     return ServiceCode;
}//END getServiceCode()
//GET SERVICE NAME
public String getServiceName()
     return ServiceName;
}//END getServiceName()
//GET SERVICE DESCRIPTION
public String getServiceDescription()
     return ServiceDescription;
}//END getServiceDescription
//GET SERVICE TYPE
public String getServiceType()
     return ServiceType;
}//END getServiceType
//GET SERVICE PRICE
public double getPrice()
     return price;
}//END getPrice
}//END PetService CLASS
class ServicesArray
     PetService[] servicesArray;  // Code the reference to the null array.
//CONSTRUCTOR
public ServicesArray()
//END CONSTRUCTOR     
public void getSize()
     servicesArray = new PetService[size];     *////////ERROR HERE*
//READ NUMBER OF SERVICES TO STORE
int size = io.readInt("How many services do you have to enter?"); *///////ERROR HERE TOO*
//DYNAMICALLY DEFINE ARRAY OF PET SERVICE OBJECTS
PetService services[] = new PetService[size];
//DEFINE PET SERVICE OBJECTS AND FILL ARRAY OF OBJECTS WITH PET SERVICE DATA
for(int i = 0; i < number; ++i) */////////////ERROR HERE ASWELL*
services[i] = new PetService();
services.setServiceCode();
services[i].setServiceName();
services[i].setServiceDescription();
services[i].setServiceType();
services[i].setPrice();
}//END FOR
//BUILD OUTPUT STRING FROM ARRAY OF PET SERVICE OBJECTS
//AND DISPLAY PET SERVICES ONE AT A TIME
for(int i = 0; i < number; ++i) *////////HMM WOW THIS DOESN'T SURPRISE ME THAT I HAVE ANOTHER ERROR*
     String info = "PET SERVICE " + (i+1) + " DATA\n";
          info += "\nSERVICE CODE: " + services[i].getServiceCode() + "\n"
               + "SERVICE: " + services[i].getServiceName() + "\n"
               + "DESC: " + services[i].getServiceDescription() + "\n"
               + "TYPE: " + services[i].getServiceType() + "\n"
               + "PRICE: " + services[i].getPrice() + "\n";
//DISPLAY PET SERVICE DATA
     io.writeInfo(info); *////////////ERROR HERE AS WELL*
}//END FOR
}//END getSize()
}//END ServicesArray CLASS
public class MadrigalRPA6
public static void main(String[]args)
PetService service = new PetService();
}//END main()
}//END MADRIGALRPA6 CLASS

wow i simply added the
private StaugIO io = new StaugIO();
into my ServicesArray class and i got the process completed with no errors, thats awesome but what doesnt make sense is this summary of this assignment that i have:
Code a program that will store available services for Dr. Doolittle's Mobile Pet Clinic. Let the user determine the size of the array. Once the array has been populated with service information, display the contents of the array one at a time in separate GUI windows. Screen capture your output to a Word file and submit it with everything else. Use the code on pp 365-367 in the textbook to help you. Assume that the spacing is always double after a period and colon. You may limit your array size to no more than 3 as indicated by the sample output below. Use the sample output to test your array.
PET SERVICE NO. 1
SERVICE CODE: DG-2478
SERVICE: Dog Group I
DESC: DHLPP, Corona, Bordetella, Rabies
TYPE: Vaccine
PRICE: $47.50
PET SERVICE NO. 2
SERVICE CODE: FL-3182
SERVICE: Feline Group I
DESC: FVRCP, FeLV, Rabies
TYPE: Vaccine
PRICE: $46.50
PET SERVICE NO. 3
SERVICE CODE: DG-4682
SERVICE: Dog Spay
DESC: Abdominal surgery to remove the ovaries and/or uterus
(ovariohysterectomy).
TYPE: Surgery
PRICE: $57.50
No where in my code do i even have any of this so how would the user be able to see this? Is this program designed to just display the SERVICE CODE: and then the user types in the DG-4682? etc etc..
I ask this because I cannot view my dialog boxes because when I run the program i get nothing, just process completed, nothing else.

Similar Messages

  • Issue with - "cannot find symbol - variable JOptionPane"

    need some help, got the below loop and want it to be able to loop by the number input by the input dialog. when i compile it i get an error in BlueJ. the error is "cannot find symbol - variable JOptionPane". Any help. have tried a few things however cannot get this to work at all. any suggestions?
    public void numberLoop()
    String qA = JOptionPane.showInputDialog(null,"How many times should this be completed (e.g. 1,2,3,4)?","Question",JOptionPane.QUESTION_MESSAGE);
    int qA2 = Integer.parseInt(qA);
    for (int startNum = 1; startNum <= qA2; startNum++)
    System.out.println(startNum + " squared is " + (startNum * startNum));
    }

    never mind i fixed it. forgot the below.
    import javax.swing.JOptionPane;
    LOL

  • The cannot find symbol - variable..... error

    i am recieving the "cannot find symbol variable getResident" error with the following line of code:
    if (Client.getResident=true)
    System.out.printf("Your Medicare Levy Contribution is: $%.2f %n", Client.getMedicare());
    i cant figure out why, maybe someone else may know and be able to help, i know that with int or double type methods u put parenthesis at the end of the method name, such as;
    while((Client.getGrossSalary())<=0)
    but i tried that here and it didnt change anything except the errror message.
    i have also tried putting parenthesis around the client.getResident, this didnt work either. i checked and made sure that the getResident method DOES in fact exist also.
    cheers for any help

    I have tried the following:
    if (Client.getResident()=true)
    if ((Client.getResident=true))
    if ((Client.getResident=(true)))
    if ((Client.getResident(true)))
    and none of these work, most of these alternatives return the error: unexpected type (Resident variable is boolean)

  • E.getSource()         cannot find symbol - variable e

    I'm currently developing a program for course I'm in that needs to allow a user to open a file, scan the information out of it and display the results.
    I'm currently stuck on an error that's really confused me. On the line: if (e.getSource() == readButton) { 
    the compiler displays the following <cannot find symbol - variable e>.
    If anyone could advise me as to my mistake I'd be very happy.
       public void readData(){
        this.textArea.setText(""); // clear the text area, ready to append new strings.
        fc = new JFileChooser();
               File file = null;
               FileReader reader = null;
               if (e.getSource() == readButton) {
                int rValue = fc.showOpenDialog(Plotter.this);
                if (rValue == JFileChooser.APPROVE_OPTION) {
                    File file = fc.getSelectedFile();
                    reader = new FileReader(file);
                    log.append("Opening: " + file.getName() + "." + newline);
                else {
                    log.append("Open cancelled by user." + newline);
                log.setCaretPosition(log.getDocument().getLength());
                Scanner input = new Scanner(file);
                while (input.hasNextLine()){
             input.close();
        }

    scphan wrote:
    I guess you probably didn't see the post previous to yours ;). Just 2 minutes difference;Yes I did read that post. That is what prompted me to say I think they are doing it wrong. OP suggested that the readData method needed the ActionEvent to be passed as a parameter. Whereas I believe the actionPerformed method should be handle the event and the readData method should do just that: read data.
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == readButton) {
            readData();
    private void readData() {
        // method just reads the file
        // no need to handle event here
    }

  • Error: Cannot find symbol: Variable Name

    Hi Guys,
    I'm having some trouble with a piece of code. The error that I'm getting is:
    program.java:17: cannot find symbol
    symbol : variable name
    location: class program
    name.CTI(names[0].charAt(0));
    ^
    My Code is shown here:
    import java.io.*;
    import java.lang.*;
    class program{
         public static void main(String[] args){
              String names [] = {"brian", "stu", "mouse"};
              program name = new program ();
              name.sortArrayStr(names);
              //name.CTI(names[0].charAt(0));
         public void sortArrayStr( String[] names ){
              name.CTI(names[0].charAt(0));
         public int CTI ( char letter ){
              char c = letter;
            int k = (int) c;
            System.out.println("ASCII  = "  + k + ".");
              return k;
    }What I'm trying to do is get the name.CTI method caled from within sortArrayStr. When i call name.CTI from main it works fine, (commented part) but when i try from sortArrayStr I get this problem.
    Anyone have any ideas?
    Many Thanks

    Variable name is a local variable defined in method main, so it can not be referenced by writing name in another method like sortArrayStr.
    The good news is, if you want to call CTI from sortArrayStr, just do it:
    public void sortArrayStr( String[] names ){
        CTI(names[0].charAt(0));
    }

  • Cannot find  symbol  : variable componentFactory

    after successfully creating webservice model  when i build my webdynpro dc i got error that "typeRegistry" cannot be resolved
    i sending my error log below. How to solve this problem?
    Mar 28, 2008 11:14:29 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: Test: Build failed for asianpaints.com/Test(asianpaints.com_TRY0802SC_1) in variant "default":
    Build log -
    Development Component Build (2008-03-28 11:14:24)
      Component name: Test
      Component vendor: asianpaints.com
      SC compartment: asianpaints.com_TRY0802SC_1
      Configuration: J2E_TEST1402_D
      Location: J2E_TEST1402_D
      Source code location: http://172.25.10.210:50000/dtr/ws/TEST1402/asianpaints.com_TRY0802SC/dev/inactive/DCs/asianpaints.com/Test/_comp/
      DC root folder: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\
      DC type: Web Dynpro
      Host: RaviShankar
    DC Model check:
              [dcmake] All used DCs are available locally
              [dcmake] validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/cmi"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/ddicruntime"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wd/webdynpro"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/logging"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/tc/wdp/metamodel/content"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.proxy.framework"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.aii.util.misc"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/com.sap.mw.jco"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/mail"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/IAIKSecurity"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/activation"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/webservices"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/webservices_lib"
              [dcmake] validating dependency to  public part "default" of DC "sap.com/sapxmltoolkit"
              [dcmake] DC model check OK
    Start build plugin:
              [dcmake] using build plugin: sap.com/tc/bi/bp/webDynpro
              [dcmake] starting build plugin from : C:\Documents and Settings\RaviShankar\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\
    Build Plugins Version 6.40.0.111  (WebDynproPlugin, 630_VAL_REL ) from 2005-09-08 23:39:44 CEST
    Building development component 'Test', vendor 'asianpaints.com', type 'Web Dynpro'
             software component 'TRY0802SC', vendor 'asianpaints.com'.
             location 'J2E_TEST1402_D'.
             source code location 'http://172.25.10.210:50000/dtr/ws/TEST1402/asianpaints.com_TRY0802SC/dev/inactive/'.
    General options:
    convert *.xlf to *.properties: yes
    include sources for debugging: yes
    Reading BuildInfrastructure extension from DC tc/bi/wdtech (vendor sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/ddictech (vendor sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/javatech (vendor sap.com)
    Reading BuildInfrastructure extension from DC tc/bi/util (vendor sap.com)
    Added technology 'sap.com/tc/bi/core'
    Added technology 'sap.com/tc/bi/javatech'
    Added technology 'sap.com/tc/bi/ddictech'
    Added technology 'sap.com/tc/bi/wdtech'
    Preparing data context..
    Warning: No 'default' JDK_HOME_PATH defined, will use running VM. Please update your configuration.
    Data context prepared in 0.171 seconds
    Executing macro file..
      Using macro file:     C:\Documents and Settings\RaviShankar\.dtc\0\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\macros\build.vm
      Creating output file: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\gen\default\logs\build.xml
    Macro file executed in 0.125 seconds
    Starting Ant with build file: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\gen\default\logs\build.xml
    Using temporary directory:    C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90
    Using build target: build
    Ant build started at 2008-03-28 11:14:25 GMT-08:00 (PST)
    Using Ant version 1.5.4
    prepare:
         [mkdir] Created dir: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\gen\default\deploy
    gen:
         [ddgen]
         [ddgen] [Info]    Property deployment is true: Deployment information is provided!
         [ddgen] [Info]    Property sourcepath: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages
         [ddgen] [Info]    Property targetpath: C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90/gdd
         [ddgen] [Info]    Property archivename: asianpaints.com~Test
         [ddgen] [Info]    Property vendor: asianpaints.com
         [ddgen] [Info]    Property dcname: Test
         [ddgen] [Info]    Property language: Available languages are automatically determined!
         [ddgen] [Info]    Property addpaths ...
         [ddgen] [Info]       SapMetamodelDictionaryContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]       SapMetamodelWebdynproContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [ddgen] [Info]    Initialize generation templates from configuration jar:file:/C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml
         [ddgen] [Info]    Generating dbtables/sdmDeployDd.xml
         [ddgen] [Info]    Generation finished (0 seconds)
         [ddgen]
         [timer] Data dictionary generator finished in 0.344 seconds
         [wdgen]
         [wdgen] [Info]    Property deployment is true: Deployment information is provided!
         [wdgen] [Info]    Property sourcepath: C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages
         [wdgen] [Info]    Property targetpath: C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90/gwd
         [wdgen] [Info]    Property archivename: asianpaints.com~Test
         [wdgen] [Info]    Property vendor: asianpaints.com
         [wdgen] [Info]    Property dcname: Test
         [wdgen] [Info]    Property language: Available languages are automatically determined!
         [wdgen] [Info]    Property addpaths ...
         [wdgen] [Info]       SapMetamodelDictionaryContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [wdgen] [Info]       SapMetamodelWebdynproContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model
         [wdgen] [Info]       SapMetamodelWebdynproContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java
         [wdgen] [Info]       SapMetamodelDictionaryContent.zip - C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java
         [wdgen] [Info]    Initialize generation templates from configuration jar:file:/C:/Documents and Settings/RaviShankar/.dtc/0/DCs/sap.com/tc/bi/extwd/_comp/gen/default/public/def/lib/java/SapWebDynproGenerationCore.jar!/WebDynproGenerationConfigurationCompiled.xml
         [wdgen] [Info]    com.apl.test.TestView --> TextView DefaultTextView: UIElement does not have a label
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestView.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestCompInterfaceView.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IExternalTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestCompInterfaceCfg.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterfaceCfg.wdcontroller
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPublicTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IExternalTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IPrivateTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/InternalTestCompInterface.java
         [wdgen] [Info]    Generating packages/com/apl/test/TestCompInterface.wdcontroller
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/IMessageTestComp.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/TestModel.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getbyname.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_gettwodept.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_adddeptDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_adddeptDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=depdet
           [Ant] getParameterStringForWSInvoke:result=this.depdet.getOriginalBean()
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getdeptDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getdeptDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid
           [Ant] getParameterStringForWSInvoke:result=this.empid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_addempDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_gettwodept.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_gettwodept
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=d1,d2
           [Ant] getParameterStringForWSInvoke:result=this.d1, this.d2
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/ComplexType_EmpdetDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getReg.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getReg
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=regid
           [Ant] getParameterStringForWSInvoke:result=this.regid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getbyname.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getbyname
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=name
           [Ant] getParameterStringForWSInvoke:result=this.name
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getbetsal.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_addempDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_addempDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empdet
           [Ant] getParameterStringForWSInvoke:result=this.empdet.getOriginalBean()
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getempdetdeptDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getempdetdeptDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid,name,age,salary,address,empdept
           [Ant] getParameterStringForWSInvoke:result=this.empid, this.name, this.age, this.salary, this.address, this.empdept.getOriginalBean()
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getbetsal.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getbetsal
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=sal1,sal2
           [Ant] getParameterStringForWSInvoke:result=this.sal1, this.sal2
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getempDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getdept2.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_adddeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getsalary.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getReg.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getdept0.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getdept0
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid
           [Ant] getParameterStringForWSInvoke:result=this.empid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/ComplexType_EmpdetdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_addemp0.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_addemp0
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid,name,age,salary,address
           [Ant] getParameterStringForWSInvoke:result=this.empid, this.name, this.age, this.salary, this.address
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getdeptwise.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getdeptwise.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getdeptwise
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=deptid
           [Ant] getParameterStringForWSInvoke:result=this.deptid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_getempdetdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Response_HaiViDocument_addemp1.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getempDTO.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getempDTO
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=empid
           [Ant] getParameterStringForWSInvoke:result=this.empid
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/ComplexType_EmpdeptDTO.java
         [wdgen] [Info]    Generating packages/com/apl/test/model/testmodel/Request_HaiViDocument_getsalary.java
           [Ant] getParameterStringForWSInvoke:modelclassname=Request_HaiViDocument_getsalary
           [Ant] getParameterStringForWSInvoke:modeltype=Request
           [Ant] getParameterStringForWSInvoke:modeltype=salary
           [Ant] getParameterStringForWSInvoke:result=this.salary
         [wdgen] [Info]    Generating configuration/Components/com.apl.test.TestComp/TestComp.xml
         [wdgen] [Info]    Generating packages/com/apl/test/wdp/ResourceTestComp.properties
         [wdgen] [Info]    Generating portalapp.xml
         [wdgen] [Info]    Generating wd.xml
         [wdgen] [Info]    Generating application.xml
         [wdgen] [Info]    Generating application-j2ee-engine.xml
         [wdgen] [Info]    Generating PublicPartFileList.properties
         [wdgen] [Info]    Generating PublicPartFileList.xml
         [wdgen] [Info]    Generation finished (0 seconds)
         [wdgen]
         [timer] WebDynpro generator finished in 0.953 seconds
         [mkdir] Created dir: C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90\classes
         [javac] Compiling 88 source files to C:\Documents and Settings\RaviShankar\.dtc\0\t\4AA094DB605D8518AA45B40C0795DC90\classes
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:12: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry = new com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingRegistryImpl();
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:13: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry.fromXML(this.getClass().getClassLoader().getResourceAsStream("com/apl/test/model/testmodel/proxies/types.xml"),this.getClass().getClassLoader());
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:18: cannot find symbol
    symbol  : variable componentFactory
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this.componentFactory = componentFactory;
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:20: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry = new com.sap.engine.services.webservices.jaxrpc.encoding.TypeMappingRegistryImpl();
            ^
    C:\Documents and Settings\RaviShankar\.dtc\0\DCs\asianpaints.com\Test\_comp\src\packages\com\apl\test\model\testmodel\proxies\HaiImpl.java:21: cannot find symbol
    symbol  : variable _typeRegistry
    location: class com.apl.test.model.testmodel.proxies.HaiImpl
        this._typeRegistry.fromXML(this.getClass().getClassLoader().getResourceAsStream("com/apl/test/model/testmodel/proxies/types.xml"),this.getClass().getClassLoader());
            ^
    5 errors
    Ant build finished with ERRORS
    file:C:/Documents and Settings/RaviShankar/.dtc/0/DCs/asianpaints.com/Test/_comp/gen/default/logs/build.xml:137: Compile failed; see the compiler error output for details.
    Ant build finished at 2008-03-28 11:14:29 GMT-08:00 (PST), Duration: 3 seconds
    Build finished with ERROR
    Cleaning up.

    Hi
        I tried that but still i'm getting the same error
    I have also tried to create web service model for the same webservice in local web dynpro project there it got build and deployed succesfully and i'm getting this error only with DC project (Track)
    with regards
    Ravi shankar
    Edited by: Ravi Shankar on Mar 10, 2008 12:53 PM

  • Unable to compile, cannot find symbol - variable arg

    Hi, I'm new to Java. I have tried to compile the following code. but it won't work
    public class Testing
    public static void main(String[] args)
    int size = args.length;
    int largest = -9;
    for ( int i = 0; i<size; i++ )
    if ( arg[i] > largest )largest = arg;
    System.out.println("Largest is " +largest);
    I have tried adding int x = Integer.parseInt(args[i]);
    but the same error code...
    Could it be compiler problem?i'm using BlueJ.
    Thanks for helping...

    It is because you a comparin a String to an int. This won't work. You need to convert your String to and int.
    Take a look at this:
    public class Testing
        public static void main(String[] args)
                int size = args.length;
                int largest = -9;
                int value;
                for ( int i = 0; i<size; i++ )
                       value=Integer.parseInt(args); //converts the String to an int
    if ( value > largest )largest = value;
    System.out.println("Largest is " +largest);
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Integer.html
    You need to read the API to check what methods you can use. If you have a problem with say a Sting then google for "Java String API" and view the methods in the String class. You need to make yourself familiar with whats available.

  • Having trouble finding out why i get   "cannot find symbol variable textio"

    Im trying to write a romanNumeral converter program.
    I dont know what else im doing wrong!
    Please help me to see and understand what i did wrong!

    Please help me to see and understand what i did wrong!You are using something called 'textio'
    The compiler doesn't know what that is.
    It is telling you exactly that.

  • Error in importing user-created jar file & cannot find symbol

    Hello.
    I try to import the jar file made from common classes in the previous project. by using NB 5.5.1.
    The jar file is named as 'tpslib.jar'
    The previoud package name is 'tps'.
    I added tpslib.jar in the library, and removed the class files from the orginal project, because the class files exist in the tpslib.jar.
    THe jar file has 8 class files inclduing the following class, ReservationData.
    My question is why the follwoing fuction call try to the method in the previous package, tps instead of those of tpslib.jar.
    If you have anyone to answer me, it will be very appreciated.
    Tae
    package tps;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import tpslib.*;
    public class tpsPWSImpl implements tpsPWSSEI {
    public ReservationData reserve(ReservationData request) throws java.rmi.RemoteException {
    request.print();
    requestLocal.print();
    if (!request.equalsCoreOf(requestLocal)){
    cFlag = true;
    System.out.println("reserve: WARNING ");
    ===================
    9 Error Messages
    ====================
    cannot find symbol
    symbol : method print()
    location: class tps.ReservationData
    request.print();
    cannot find symbol
    symbol : constructor ReservationData(tps.ReservationData)
    location: class tps.ReservationData
    wr = new ReservationData(rr);
    ===========

    Does your jar include:
    /a/Main.classWith class Main defined in package, er, "a"?

  • Error code on cannot find symbol

    Hi,
    I compiler a file with error: cannot find symbol. but I can't found the problem.
    Can anyone help.
    public class WriteExcel
      private WritableCellFormat timesBoldUnderline;
      private WritableCellFormat times;
      final DecimalFormat df = new DecimalFormat("#,##0.00");
      private void createLabel(WritableSheet paramWritableSheet)
        throws WriteException
      String[] arrayOfString = { "Roy Year", "Roy Dist No", "Dist Type", "Ip Base No", "Ip Name No"};
        int[] arrayOfInt = { 10, 12, 10, 12, 15};
        WritableFont localWritableFont1 = new WritableFont(WritableFont.TIMES, 10);
        this.times = new WritableCellFormat(localWritableFont1);
        this.times.setWrap(true);
        WritableFont localWritableFont2 = new WritableFont(WritableFont.TIMES, 10, WritableFont.BOLD, false, UnderlineStyle.SINGLE);
        this.timesBoldUnderline = new WritableCellFormat(localWritableFont2);
        this.timesBoldUnderline.setWrap(true);
        CellView localCellView = new CellView();
        localCellView.setFormat(this.times);
        localCellView.setFormat(this.timesBoldUnderline);
        for (int i = 0; i < arrayOfString.length; i++)
          paramWritableSheet.setColumnView(i, arrayOfInt[i]);
          addCaption(paramWritableSheet, i, 0, arrayOfString[i]);
    error code : "cannot find symbol"

    Hi
    Also I note that you have no import statetments, can you send me the whole file. How is the file executed in a web server or as part of a standard JVM ? Together with any other classes outside of the JDK that are required for compilation.

  • Please help. Cannot find symbol Error!

    I have been working on this code for days now. It keeps coming up with errors. The error says cannot find symbol. I will bold the areas that say that. I got it down to 23 from 42 but now I have no idea what the problem is. any help is greatly appreciated!! I only added a couple of them mainly because it is overwhelming. I can add the rest of someone replies. Thank you again. Oh and the Classpath is set right. I am compiling from the desktop where I have the file also. That was the first thing I checked after reading other threads related to this issue. :O)
    import javax.swing.*;
    import java.awt.event.*;
    public class InventoryPart4 extends JFrame
         private JTextArea text;
         private Inventory inv;
         private int view;
         public InventoryPart4() {
              super("Product");
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // quit if the window is closed
              view = 0; // current one showing
              Product product;
              inv = new Inventory(4);
              product = new Product(1, "Salad", 3, 4.95); here
              inv.add(product, 0);
    product = new Product(2, "Dressing", 6, 3.00); here          
    inv.add(product, 1);
    product = new Product(3, "Bacon Bits", 2, 1.75);*here*
              inv.add(product, 2);
    product = new Product(4, "Croutons", 1, 1.75); here
              inv.add(product, 3);
              // sort
              inv.sort();
              // output
              for (int i = 0; i < 4; i++) {
                   System.out.println(inv.get(i));
              // total val
              System.out.printf("Total=$%.2f", inv.totalValue());
              //gui
              JPanel panel = new JPanel();
              panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
              text = new JTextArea(10,50);
              text.setEditable(false);
              panel.add(text);
              showProduct();
              JButton next = new JButton("Next");
    here          next.addProduct(new Product() {
                   public void actionPerformed(ActionEvent e) {
                        if (view < inv.size()-1) view++;
                        else view = 0;
                        showProduct();
              panel.add(next);
              getContentPane().add(panel);
         // view an item
         public void showProduct() {
              text.setText("Product Details:\n");
              text.append(inv.get(view).toString()+"\n");
              text.append(String.format
                        ("Value of all the Contents: $%.2f", inv.totalValue()));
         public static void main(String args [])
              InventoryPart4 invt = new InventoryPart4();
              invt.pack();
              invt.setVisible(true);
         } //end main
    } // end class InventoryPart1
    class Product {
    private int ProductItem;
    private int ProductStock;
    private double ProductPrice;
    public Product(int item, int stock, double price) {
    ProductItem = item;
    ProductStock = stock;
    ProductPrice = price;
    } //end three-argument constructor
    // set Product Item
    public void setProductItem(int item) {
    ProductItem = item; here
    } //end method set Product Item
    //return Product Item
    public int getsProductItem() {
    return productItem;
    } //end method get product Item
    //set Product Stock
    public void setProductStock(int stock) {
    productStock = stock;
    } //end method set Product Stock
    //return Product Stock
    public int getProductStock() {
    return productStock;
    } //end method get Product Stock
    public void setProductPrice(double price) {
    productPrice = price;
    } //end method setproductPrice
    //return Product Price
    public double getProductPrice() {
    return ProductPrice;
    } //end method get Product Price
    //calculate inventory value
    public double value() {
    return productPrice * productStock;
    }// end method get productPrice and productStock
    @Override
    public String toString() {
    return String.format("item=%3d units=%d price=%.2f value=%.2f",
    productItem, productStock, productPrice, value());
    }//end class Product
    class Inventory {
         private Product[] list;
         // constructor
         public Inventory(int size) {
              list = new Product[size];
         // complete value
         public double totalValue() {
              double val = 0.0;
              for (int i = 0; i < list.length; i++) {
                   val += list.value();
              return val;
         // add an item
         public void add(Product i, int p) {
              list[p] = i;
         // get an item
         public Product get(int i) {
              return list[i];
         // sort by name
         public void sort() {
              // bubble sort
              int n = list.length;
              for (int search = 1; search < n; search++) {
                   for (int i = 0; i < n-search; i++) {
                        if (list[i].getProductItem().compareToIgnoreCase(list[i+1].getProductItem()) > 0) {
                             // swap
                             Product temp = list[i];
                             list[i] = list[i+1];
                             list[i+1] = temp;
         public int size() {
              return list.length;
    //extended class
    class Contents extends Product {
         private String Contents;
         // constructor
         public Contents(int item, String name, int units, double price) {
              super(item,name,units, price);
              this.contents = contents;
         // getter
         public String getContents() {
              return Contents;
         // total value with the 5% fee
         public double value() {
              return super.value()*1.05;
         // just the 5% fee
         public double fee() {
              return super.value()*0.05;
         // setter
         public void setContents(String contents) {
              this.contents = contents;
         public String toString()
              return super.toString() + String.format(" fee=%.2f contents=%-20s",
                        fee(), contents);

    The error says cannot find symbol.It says more than that. It says what symbol it cannot find, and it points to the line of code where the symbol was used.
              product = new Product(1, "Salad", 3, 4.95); *here*So it can't find a class called Product with an accessible constructor Product(int, String, int, double).
    product = new Product(2, "Dressing", 6, 3.00); *here*          
    inv.add(product, 1);
    product = new Product(3, "Bacon Bits", 2, 1.75);*here*
              inv.add(product, 2);
    product = new Product(4, "Croutons", 1, 1.75); *here*
              inv.add(product, 3);Ditto.
              JButton next = new JButton("Next");
    *here*          next.addProduct(new Product() {JButton doesn't have an addProduct() method.
    public Product(int item, int stock, double price) {This constructor doesn't match the constructor you are calling above, and there are no other constructors.
    ProductItem = item; *here*You must have a typo. But don't use inital capitals on field names: use them only on class names.
    return productItem;Here is evidence that you have a typo. Java is case-sensitive. Either the field is caled 'ProductItem' or it is called 'productItem', not both.
              // bubble sortDo you have to do this for the homework? Bubble sort is never used in real code except by people who don't know what they're talking about. Use Collections.sort().
              super(item,name,units, price);You should be getting a compile error here too. Ther is no such constructor for Product.
              return Contents;And here.

  • Using currency format to round results (error cannot find symbol)

    Hi i have a small program that converts currency and want to round the numbers up to 2 d.p i have chosen to use the command
    numberFormat(txtOutput, "0.00");
    But i cannot figure out where to put it in my program as it just returns errors like cannot find symbol. Could anyone please help?
    this is the program that it is going to go into
    double x;
    double y;
    double z;
    x = Integer.parseInt(txtInput.getText());
    y = 0.748279;
    z = Double.parseDouble(txtExchange.getText());
    if (z > 0)
    txtOutput.setText('?' + Double.toString( x * z ));
    else
    txtOutput.setText('?' + Double.toString( x * y ));

    I now have this but it is still returning the error illegal start of expression for the line "import java.text.DecimalFormat;". And i have checked the braces and they appear correct
    import java.text.DecimalFormat;
            numberFormat(txtOutput, "0.00");
            DecimalFormat df = new DecimalFormat("0.00");
            double x = Integer.parseInt(txtInput.getText());
            double y = 0.748279;
            double z = Double.parseDouble(txtExchange.getText());
            if (z > 0){
                txtOutput.setText('?' + df.format( x * z ));
            } else {
                txtOutput.setText('?' + df.format( x * y ));
            }

  • Constructor - cannot find symbol

    Hi all,
    Can anyone please help me with this code? I don't know what's wrong with it.
    class Superclass {
        public int j = 0;   
        public Superclass(String text){  //constructor
            j = 1;
    class Subclass extends Superclass {
        public Subclass(String text){  //constructor - error here: cannot find symbol       
            j = 2;       
        public static void main(String[] args){
            Subclass sub = new Subclass("");
            System.out.println(sub.j);
    }What's wrong with the subclass c'tor? What symbol is it missing?
    Thank you for your replies.

    I'm wondering, why do we need the c'tor from the superclass? Is it because it is not inherited? That's why we need to manually write it? NO. It is because you have not written a no argument constructor in your superclass and compiler is calling it when you actually creating a instance of subclass.
    If there are many other superclass c'tors with different types of arguments, do we have to explicitly write each one of them in the subclass c'tor? Is that correct?NO. You just need to call only one with the parameters that you actually need to pass to superclass.
    If you dont put the super(text); in subclass constructor then too it looks for the superclass constructor while creating a instance of subclass. But since if you are not calling a constructor with arguments[which in now done by super(text)] it will look for a default constructor in your superclass which is no argument constructor. & you dont have any no argument constructor in your Superclass.
    Try you code like this. It will work but in this case you are not passing text to your super class. If you want to pass text then you have to use super(text) in your subclass.
    class Superclass {
        public int j = 0; 
        public Superclass()
        public Superclass(String text){      
            j = 1;
        public Superclass(int count){
            count = 10;
    class Subclass extends Superclass {    
        public Subclass(String text){  
            //super(text);  // have to write this line
            j = 2;       
        public Subclass(int count){
            super(count); // have to write this line also
            count = 15;
        public static void main(String arg[]){
             Subclass  s = new Subclass("e");
    }I hope it helps.

  • [Greenfoot] "cannot find symbol - constructor Plotter"?

    I am attempting to make a sinusoid plotter as part of my math class. Using Greenfoot, I have created a class Plotter, which is supposed to accept amplitude, frequency, vertical displacement, and phase displacement and then plot the resulting sinusoid. Everything works fine, except when I try to compile the program I get an error message "cannot find symbol - constructor Plotter(float,float,float,float)" when I compile the World object which creates the Plotter object. My call in the World object's constructor:
    GraphWorld()
    // Create the field, which is 800x450 pixels.
    super(800, 450, 1);
    // These will eventually be set by a prompt to the user.
    float amp = 1;
    float freq = 1;
    float vd = 0;
    float pd = 0;
    addObject(new Plotter(amp,freq,vd,pd), 0, 225);
    }I am currently using a workaround by changing the code directly within the Plotter class, but I would like to find the source of the problem.

    Grey_Ghost wrote:
    It should.That's what the compiler thinks too.
    Here is the constructor as it is defined in class Plotter:
    public void Plotter(float Amplitude, float Frequency, float VertDisp, float PhaseDisp)
    amplitude = Amplitude;
    frequency = Frequency;
    vertDisp = VertDisp;
    phaseDisp = PhaseDisp;
    Except that's not a constructor. Constructors don't have return values.

  • Another cannot find symbol error (DiveLog)

    Hi I am fairly new to java and I decided to try the tutorial DiveLog. I followed the instructions, however when I try to compile it, not with the DOS command, I keep getting an error stating that, Cannot find symbol class ..... The errors keep recurring at the tabbedPane.addTab(".....",
    package DiveLog;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class DiveLog
    { // Opens class
    public JTabbedPane tabbedPane;
    public JFrame dlframe;
    public DiveLog()
    { // Opens contructor
    //Create a frame object to add the application
    //GUI components to.
    dlframe = new JFrame("A Java(TM) Technology Dive Log");
    // Closes from title bar
    //and from menu
    dlframe.addWindowListener(new WindowAdapter()
    { // Opens addWindowListener method
    public void windowClosing(WindowEvent e)
    { // Opens windowClosing method
    System.exit(0);
    } // Closes windowClosing method
    }); // Closes addWindowListener method
    // Tabbed pane with panels for Jcomponents
    tabbedPane = new JTabbedPane(SwingConstants.LEFT);
    tabbedPane.setBackground(Color.blue);
    tabbedPane.setForeground(Color.white);
    //A method that adds individual tabs to the
    //tabbedpane object.
    populateTabbedPane();
    //Calls the method that builds the menu
    buildMenu();
    dlframe.getContentPane().add(tabbedPane);
    dlframe.pack();
    dlframe.setSize(765, 690);
    dlframe.setBackground(Color.white);
    dlframe.setVisible(true);
    } //Ends the constructor
    private void populateTabbedPane()
    { // Opens populateTabbedPane method
    // Create tabs with titles
    tabbedPane.addTab("Welcome",
    *               null,*
    *               new Welcome(),*
    *               "Welcome to the Dive Log");*
    *     tabbedPane.addTab("Diver Data",*
    *               null,*
    *               new Diver(),*
    *               "Click here to enter diver data");*
    *     tabbedPane.addTab("Log Dives",*
    *               null,*
    *               new Dives(),*
    *               "Click here to enter dives");*
    *     tabbedPane.addTab("Statistics",*
    *               null,*
    *               new Statistics(),*
    *               "Click here to calculate dive statistics");*
    *     tabbedPane.addTab("Favorite Web Site",*
    *               null,*
    *               new WebSite(),*
    *               "Click here to see a web site");*
    *     tabbedPane.addTab("Resources",*
    *               null,*
    *               new Resources(),*
    *               "Click here to see a list of resources");*
    *          } //Ends populateTabbedPane method*
    private void buildMenu()
    { // Opens buildMenu method
    JMenuBar mb = new JMenuBar();
    JMenu menu = new JMenu("File");
    JMenuItem item = new JMenuItem("Exit");
    //Closes the application from the Exit
    //menu item.
    item.addActionListener(new ActionListener()
    { // Opens addActionListener method
    public void actionPerformed(ActionEvent e)
    { // Opens actionPerformed method
    System.exit(0);
    } // Closes actionPerformed method
    }); // Closes addActionListener method
    menu.add(item);
    mb.add(menu);
    dlframe.setJMenuBar(mb);
    } //Ends the buildMenu method
    } //Ends class
    If you could help me, please explain it into terms that I would understand as I am still new to the entire language. Thanks

    cannot find symbol: whatever class or method signature or variable you use was never declared. It's as simple as that. Make sure that the names are correct; if a class is missing (thanks a bunch for omitting the relevant part of the error message :p), ensure the compiled .class file is in the classpath, if a method isn't found make sure that the arguments are provided exactly in the same order, number and type as the method declaration declares, and if a variable is missing make sure that you actually declared it.
    Learn about code tags when posting code next time, by the way.

Maybe you are looking for

  • Using a Mac Mini bought in the US in the UK

    I've been looking at buying my first Mac for about a year now so I thought it would probably be a good idea to go with a cheap one. Having a look at the apple site it turns out that I can get the Mac in the US for $599 which is about £316 or I can bu

  • Transferring info from older iMac to new one.

    Is there a way to transfer my files from my older iMac to My new one? I mean, can I use the firewire port or something easy like that to transfer my files? Or will I have to start form scratch. BTW did I mention my cd/dvd drive on my older mac is dea

  • Message font in mail

    Soorry to have to ask this, it seems pretty obvious but I can't figure it out. How can I change the size of the font of messages I receive in mail? Going to prefs/Fonts&colors only lets me change the size of the header and message list. There must be

  • Hi to all,how to make back up if i want update my ipad ti ios5,then how to make update to ios5?

    Hi to all,how to make back up if i want update my ipad ti ios5,then how to make update to ios5?

  • X58 Pro-E i7 system dont boot. Urgent

    I build a system with MSI X58 Pro-E mobo, i7 930 cpu, 6 gigs of Patriot ram and nvidia quadro 5000 when i tried to boot all the lights and fans run for less than a second and only the mobo energy led and the mobo starting button stay on and nothing m