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));
}

Similar Messages

  • 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)

  • 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

  • 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 getText()'

    please check my java coding. when I compile it, the error: 'cannot find symbol
    getText() ' is appear. What wrong with this coding.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class buatAction
    public static void main(String[] args)
    JFrame f= new JFrame("Contoh Action");
    f.setSize(150,200);
    f.setLocation(200,200);
    f.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent we)
    System.exit(0);
    //setkan button
    final JPanel OK = new JPanel();
    JButton buttonOK = new JButton("OK");
    OK.add(buttonOK);
    final JPanel txt = new JPanel();
    JTextField inputText = new JTextField(15);
    inputText.setFont(new Font("Serif", Font.PLAIN, 12));
    txt.add(inputText);
    Container content = f.getContentPane( );
    content.setLayout(new GridLayout(1,1));
    content.add(txt);
    content.add(OK);
    buttonOK.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    String ayat = txt.getText().getActionCommand();
    System.out.println(ayat);
    f.setVisible(true);
    }

    please check my java coding. when I compile it, the error: 'cannot find symbol
    getText() ' is appear. What wrong with this coding.
    final JPanel txt = new JPanel();...
    buttonOK.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    String ayat = txt.getText().getActionCommand();
    System.out.println(ayat);
    });Final variable 'txt' is a JPanel. JPanels don't have a 'getText()' method; hence
    the compiler diagnostics message.
    kind regards,
    Jos
    ps. better stick your code between [code] ... [/code] tags for readability reasons.

  • I am getting an error cannot resolve symbol variable?

    I am trying to run a PdfFormGenerator.java file and am using the iText API, hence have included
    the iText.jar file. When I compile the code I keep getting the following two errors:
    cannot resolve symbol variable CLASS_LOCATION
    cannot resolve symbol variable FORM_LOCATION
    can anyone guide me what I may have done wrong.
    Thanks,
    Zub

    Hi! To be more specific its these to line of the code is were I am going the errors:
        private String classLocation = Constants.CLASS_LOCATION;
        private String formLocation = Constants.FORM_LOCATION;Thanks

  • Compiler error: "cannot find symbol" - constructor

    Dear all,
    I keep getting the compiler error "cannot find symbol" - constructor AWTEvent() for the following class. It's supposed to extend AWTEvent to give me my own event to be fired. What could be wrong?
    import java.awt.*;
    import java.awt.event.*;
    public class MyButtonEvent extends AWTEvent
         public MyButtonEvent()
    }Thanks a lot!
    N

    When you do this
    public MyButtonEvent()
    }you are implicitly calling the super class constructor with no parameters
    That is:
    AWTEvent();
    you can think of it as
    public MyButtonEvent()
         AWTEvent(); // <-- automatically generated for you
         //the rest of your stuff
    }the problem is that AWTEvent has no such constructor, so you need to explicitly put another constructor in your constructor as the first statement. This other constructor has to be one that exists in AWTEvent.

  • Error: cannot find symbol implements..

    I have an interface and I'm trying to implement.
    package data_structures;
    public interface ListADT<E> extends Iterable<E> {
    //Method Signatures
    and
    package data_structures;
    public class LinkedListDS<E> implements ListADT<E> {
    //Code
    And when I try to compile the class I get
    LinkedListDS.java:3 error: cannot find symbol
    public class LinkedListDS<E> implements ListADT<E> {
    ____________________________________^
    symbol: class ListADT
    And I'm not really sure what I'm doing wrong here or what exactly Java wants me to do to correct this error.

    What are you using to compile?  If the command line, and not an IDE which will do this for you, then compile the interface, first.

  • Error: cannot find symbol method Text

    Hi
    I want to make an index for txt files by using Lucene, it got an error: cannot find symbol method Text. what is it about? Does it mean the Text is not in Field?
    thank you v much
    pls look into my code:
    package TestLucene;
    import java.io.File;
    import java.io.FileReader;
    import java.io.Reader;
    import java.util.Date;
    import org.apache.lucene.analysis.Analyzer;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.document.Field;
    import org.apache.lucene.index.IndexWriter;
    import org.apache.lucene.document.Fieldable;
    import java.io.Serializable;
    * This class demonstrate the process of creating index with Lucene
    * for text files
    public class Lucene {
         public static void main(String[] args) throws Exception{
              //indexDir is the directory that hosts Lucene's index files
            File   indexDir = new File("D:\\luceneIndex");
            //dataDir is the directory that hosts the text files that to be indexed
            File   dataDir  = new File("D:\\luceneData");
            Analyzer luceneAnalyzer = new StandardAnalyzer();
            File[] dataFiles  = dataDir.listFiles();
            IndexWriter indexWriter = new IndexWriter(indexDir,luceneAnalyzer,true);
            long startTime = new Date().getTime();
            for(int i = 0; i < dataFiles.length; i++){
                 if(dataFiles.isFile() && dataFiles[i].getName().endsWith(".txt")){
              System.out.println("Indexing file " + dataFiles[i].getCanonicalPath());
              Document document = new Document();
              Reader txtReader = new FileReader(dataFiles[i]);
              document.add(Field.Text("path",dataFiles[i].getCanonicalPath()));
              document.add(Field.Text("contents",txtReader));
              indexWriter.addDocument(document);
    indexWriter.optimize();
    indexWriter.close();
    long endTime = new Date().getTime();
    System.out.println("It takes " + (endTime - startTime)
    + " milliseconds to create index for the files in directory "
              + dataDir.getPath());

    Hal-.- wrote:
    I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
    I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
    What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
    But other than that I have no idea. Ask on a Lucene forum.

  • 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.

  • 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

  • Compile error : Cannot find symbol

    hello, i'm having trouble compiling a bean that resorts to another bean's public operation. Im trying to make a shopping cart which takes individual item orders such as item name and quantity and place them within an array list called cart in another bean. The errors i get when im trying to compile is:
    cannot find symbol
    symbol : class OrderItem
    location: class beans.WidgetOrder
               public void setItem(OrderItem o){cart.add(o);}I've looked at other threads and heard that quicktime can intervein with the classpath, so i deleted that, and also checked that CLASSPATH is set to C:\Program Files\Java\jre1.6.0_04\lib\ext\QTJava which it is, but the javabeans are set in the same path so i don't know what difference that is.

    Are you using an IDE?
    Is the OrderItem class in the beans package?
    You should have a path structure like some/path/beans where the WidgetOrder.class file will reside inside the beans directory. If OrderItem is in the beans package, then when you compile you should use something like "javac -cp some/path WidgetOrder.java"

  • Java Error : cannot find symbol , symbol : class (jdk 1.6.0)

    Dear All,
    Please help me.
    I am running javac from a .bat file and i set the classpath in the bat file as follows.
    echo on
    :start
    set classpath = "C:\Program Files\Java\jdk1.6.0\bin;"
    set classpath = "C:\Program Files\Java\jdk1.6.0\jre\..\lib\tools.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0\jre\classes;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\ldapsec.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\mysql-connector-java-5.0.0-beta-bin.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\sunjce_provider.jar; C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\studio\system;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\j2ee-1.3.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jaas-1.0.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\activation.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jms-1.0.2b.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jta-spec1_0_1.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\mail.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\AbsoluteLayout.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\sql.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\rowset.jar;C:\Program Files\Java\jdk1.6.0\studio\lib\ext\jdbc20x.zip;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\servlet-2.3.jar;C:\Program Files\Java\jdk1.6.0\studio\beans\TimerBean.jar;c:\Program Files\Java\jdk1.6.0\ideset\tomcat401_base;C:\sms\com\;"
    cd C:\sms
    javac mainP.java
    pause
    i have few class files which are inherited to the main program using ' import com.Connection; '
    i am getting errors like
    mainP.java:482: cannot find symbol
    symbol : class Connection
    location: class mainP
    Connection connection = new Connection(ipAddress, port);
    I think it is because of some classpath error.
    please advice me.......
    Viju

    Actually, you have NO CLUE what he's trying to doActually he said what he is trying to do in his posting. It's no mystery. But that's all the information that's available. If you know something that isn't posted here why not say so?
    Your reply was a snide, rude, "You're stupid for doing it that way" answerMy reply was neither snide nor rude and implied none of what you impute to it. It was a proper and constructive suggestion. You are entitled to disagree with it, but that doesn't justify this immoderate outburst.
    Bottom line is, you chose to be nastyBottom line is you're just making this up. You are imputing motives to me without evidence. Don't do that.
    You are the type of person that makes searching forums and posting questions for assistance a near waste of time.I doubt that you'll find many regulars here that would agree with that assertion. When you have made over 16,000 posts here over ten years as I have, come back and we'll discuss it some more.
    Go back to grade school and ...I suggest you try it yourself. You're not adding anything except noise to the discussion. Try curbing your temper, and while you're at it have a good look at the Code of Conduct for these forums. You're verging on personal abuse here.
    And, additionally, I've used ANT in the past. Batch files are FAR AND AWAY easier to set up.In your opinion. I disagree entirely, and I have eleven years' experience with Java to back it up.
    As for CLASSPATH, I haven't done anything about setting it beyond installing the JDK since about 1999, and it has a dot in it as we speak.

  • Client error, cannot find symbol

    Hello, I just finished my project and my client keeps giving me this error, I do not know what is going on. It doesn't look like I did anything really wrong. Any help is appreciated!
    HomeClient.java:14: cannot find symbol
    symbol  : constructor Home(int,int,int)
    location: class Home
         Home home1 = new Home( 1, 123, 1);
    Class
    import java.io.Serializable;
    public class Home implements Serializable
         private int rooms;
         private int squareFootage;
         private boolean basement;
         public Home ( int startRooms,
              int startSquareFootage,
              boolean startBasement )
              rooms = startRooms;
              squareFootage = startSquareFootage;
              basement = startBasement;
         public String toString()
              return "Rooms: " + rooms
              + " Square Footage: " +squareFootage
              + " Basement: " +basement;
    Client Program
    import java.io.FileOutputStream;
    import java.io.ObjectOutputStream;
    import java.io.FileInputStream;
    import java.io.ObjectInputStream;
    import java.io.FileNotFoundException;
    import java.io.EOFException;
    import java.io.IOException;
    public class HomeClient
         public static void main( String [] args )
         Home home1 = new Home( 1, 123, 1);
         try
              FileOutputStream fos = new FileOutputStream
                             ( "objects", false);
              ObjectOutputStream oos = new ObjectOutputStream( fos );
              oos.writeObject( home1 );
              oos.close();
         catch ( FileNotFoundException fnfe ) {
              System.out.println( "Unable to write to objects" );
         catch ( IOException ioe ) {
              ioe.printStackTrace();
    }

    ok, not really getting this, same problem. Any advice of what is wrong as far as the methods. I'm really trying to get this!
    import java.io.Serializable;
    public class Home implements Serializable
         private int rooms;
         private int squareFootage;
         private boolean basement;
         public Home ( int startRooms,
                               int startSquareFootage,
                               boolean startBasement )
              rooms = startRooms;
              squareFootage = startSquareFootage;
              basement = startBasement;
         public String toString()
              return "Rooms: " + rooms
                         + " Square Footage: " +squareFootage
                         + " Basement: " +basement;
         public int getRooms()
              return rooms;
         public int getSquareFootage()
              return squareFootage;
         public boolean getBasement()
              return basement;
         public void setRooms( int newRooms )
              rooms = newRooms;
         public void setSquareFootage( int newSquareFootage )
              squareFootage = newSquareFootage;
         public void setBasement( boolean newBasement )
              basement = newBasement;
    }

  • Error: cannot find symbol

    Hi all,
    I have this piece of code inside try/catch block:
    for (int i=0; i<nodeList.getLength(); i++)
                     Node node = nodeList.item(i);
                        NamedNodeMap attributes = node.getAttributes();
                     Node namedItem = attributes.getNamedItem("event_ID");
                     if (node.getNodeName().equals("events") && namedItem != null)
                        nameValueMap.put("event_ID", namedItem.getNodeValue());                 
                     if (!node.getNodeName().equals("events") && !node.getNodeName().equals("event"))
                        nameValueMap.put(node.getNodeName(), node.getTextContent());
                    } I receive the following error:
    home/LogParserDOM.java:281: cannot find symbol
    symbol  : method getTextContent()
    location: interface org.w3c.dom.Node
                        nameValueMap.put(node.getNodeName(), node.getTextContent()); Does anybody have any idea why am I receiving this error? Why all other methods that I'm using from interface org.w3c.dom.Node like: getAttributes(), getNodeValue(), getNodeName(), ... can be found and the error happens at: getTextContent()?
    Any help is greatly appreciated.

    Check the API.
    org.w3c.dom Interface Node:
    String getTextContent() throws DOMExceptionThis method is not in JDK 1.4.2 API docs, it looks like it was added 1.5. May be you are using 1.4.2?

Maybe you are looking for