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.

Similar Messages

  • Java:57: cannot find symbol class _cls2

    Due to our loss of a software engineer who started this ongoing project many many moons ago I've come to compile it, but have the following error.
    I'm using netbeans 5.5 and JKD1.5 U12
    I've fixed all of the errors apart from this one:-
    table = new _cls2(model);
    Now the _cls2 class has not be defined anywhere, so I presume it should have been included within an old library file.... or have I got this worng.
    Any help appreciated I seem to be coming across the same websites over and over again whilst searching.....

    if its included in some other library you have somewhere then you need to import that library.

  • "cannot find symbol class studentList" error

    Hi I get this error
    "cannot find symbol class studentList", but this class is at the same file and also it is in the same folder. so what's wrong .. and I checked the spelling it's the same.
    I should create an object named myList of type studentList
    and second, I call method menu() and pass it myList as actual parameter.
    so I called the function menu which is should be in the main too
    like this
    myList.menu();
    and menu method accepts as parameter an object of type studentList. and display the menu for the user to choose..
    here is part my program:
    public class ListTest
    {  public void menu(Student L) // accepts parameter
                   System.out.println("");
                System.out.println("Choose a number between 1 to 4");
                      System.out.println("1-Print Info of A Student ");          
                System.out.println("2-Print Info of All Students ");                          
               System.out.println("3-Display grade of A Specific student");                           
                System.out.println("4-Exit");
                System.out.println("");        
              int choice = Stdin.readInteger();
              while (choice != 5)
             switch (choice) {
                 case 1:
             L.PrintAStudent(int L);
             break;
              case 2:
            L.PrintAll();
            break;     
              case 3:
              L.DisplayGPA();
              break;
                 case 3:
                System.exit(0);
               break;
               default:
               System.out.println("wrong Number");
              System.out.println("Enter a number between 1 to 4 ");
               System.out.println("Enter 4 to Exit");
                break;
                System.out.println("");
                System.out.println("Choose a number between 1 to 4");
                System.out.println("1-Print Info of A Student ");          
                System.out.println("2-Print Info of All Students ");                          
               System.out.println("3-Display grade of A Specific student");                           
                System.out.println("4-Exit");
                System.out.println(""); 
                choice = Stdin.readInteger();
         }// end method menu
         public static void main(String args[ ])
         { studentList myList = new studentList();//myList object is created
    myList.menu();
                             }//end main
    }// end of class ListTest
              

    you have mentioned about the class "studentList" but that class is not to be found in the code you have pasted. its instead "ListTest". And the "menu" function seems to b a part of "ListTest" class. Can you provide the structure of the classes "studentList" and "Student" so that the problem can be more clearly understood?
    also you are using the variable "Stdin" in the line int choice = Stdin.readInteger(); where as you have not declared this variable.
    in the "switch" statement you are calling two different functions for the same case "3" where as it should be "case 3" and "case 4" respectively.
    in the "main" you are calling the "menu" function without any parameter while you actually want to pass argument of type "studentList".

  • Cannot find symbol     class Usernamebean

    hi i am new in j2ee
    can some body help to give the solution.
    i am always thankfull to everybody
    i have a servlet where i am calling a bean of same package but servlet not compile giving that error
    cannot find symbol class Usernamebean
    servlet code
    package ecomm; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import bengalcom.*; public class Loginservelet extends HttpServlet { public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException { try {         String accnum=req.getParameter("username");   String pinnum=req.getParameter("password"); try { Class.forName("com.mysql.jdbc.Driver"); Connection dbcon=DriverManager.getConnection("jdbc:mysql://localhost/ecomm","root",""); PreparedStatement s = dbcon.prepareStatement("select * from vendordetails where email = ? and password = ? and blocking='No' "); s.setString(1,accnum); s.setString(2,pinnum); ResultSet result=s.executeQuery(); boolean rowfound=false; rowfound=result.next();   if(rowfound==true) { String vname=result.getString("fname"); String  vid=result.getString("vid"); String email=result.getString("email");   UsernameBean nameBean =new UsernameBean();   nameBean.setFirstName(accnum); HttpSession session = req.getSession(true); session.setAttribute("vname",vname); session.setAttribute("vid",vid); session.setAttribute("email",email);   RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/earea.jsp?vname=vname&vid=vid&email=email"); dispatcher.forward(req,res); dbcon.close(); } else{ RequestDispatcher dispatcher=getServletContext().getRequestDispatcher("/eblock.jsp"); dispatcher.forward(req,res); }   } catch(ClassNotFoundException e) { } } catch(SQLException e) { System.out.println(e.toString()); } } public void doPost(HttpServletRequest req, HttpServletResponse res)         throws ServletException, IOException     {         doGet(req, res);     } }

    Hi,
    java is case sensitive, Check the case in class name.
    Regards,
    Ram

  • "cannot find symbol : class Scanner"  error message

    I have an error message that says:
    "cannot find symbol : class Scanner"
    I tried typing at the top of the program
    import java.util.Scanner;but I still have the same error message.
    What should I do ?
    Thank you in advance

    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
    Since:
    1.5
    look at the javadoc, it says since 1.5 so it's not there in earlier versions.
    just a guess

  • Cannot find symbol class entry

    .\ListGraph.java:26: cannot find symbol
    symbol : class Entry
    location: class Map
    for(Map.Entry<Stad,List<ListEdge>> me : nodes.entrySet())
    ^
    1 error
    this is what i get when i try to compile this code, its the lowest part thats getting errors:
    import java.util.*;
    import java.util.Map.*;
    import java.util.Map.Entry;
    class ListGraph{
         private HashMap<Stad,List<ListEdge>> nodes =
              new HashMap<Stad,List<ListEdge>>();
         public void addNode(Stad ny){
              nodes.put(ny, new ArrayList<ListEdge>());
         public void connect(Stad from, Stad to, String n, int v){
              List<ListEdge> fromList = nodes.get(from);
              List<ListEdge> toList = nodes.get(to);
              ListEdge e1 = new ListEdge(to, n, v);
              fromList.add(e1);
              ListEdge e2 = new ListEdge(from, n, v);
              toList.add(e2);
         public String toString(){
              String ret = "";
              for(Map.Entry<Stad,List<ListEdge>> me : nodes.entrySet())
                   ret += me.getKey()+": "+me.getValue()+"\n";
              return ret;
    }

    Bananen123 wrote:
    .\ListGraph.java:26: cannot find symbol
    symbol : class Entry
    location: class MapI don't get the same error, so I'm not sure what code you are actually trying to compile. Do you happen to have defined another class named Map in the default package?
    Also, please use code tags when posting code. Example: import java.util.*;
    import java.util.Map.*;
    import java.util.Map.Entry;
    class ListGraph{
        private HashMap<Stad,List<ListEdge>> nodes =
            new HashMap<Stad,List<ListEdge>>();
        public void addNode(Stad ny){
            nodes.put(ny, new ArrayList<ListEdge>());
        public void connect(Stad from, Stad to, String n, int v){
            List<ListEdge> fromList = nodes.get(from);
            List<ListEdge> toList = nodes.get(to);
            ListEdge e1 = new ListEdge(to, n, v);
            fromList.add(e1);
            ListEdge e2 = new ListEdge(from, n, v);
            toList.add(e2);
        public String toString(){
            String ret = "";
            for(Map.Entry<Stad,List<ListEdge>> me : nodes.entrySet())
                ret += me.getKey()+": "+me.getValue()+"\n";
            return ret;
    class Stad {}
    class ListEdge{ ListEdge(Stad s, String str, int i) {} }~

  • Cannot find symbol class Scanner

    hi all
    i'm defining a class within a project so i can use the class inside my program, but the line:
    Scanner keyboard = new Scanner(System.in);generates an error with my compiler:
    cannot find symbol class Scanner
    please help

    you aren't using jdk 5 or higher then. that's when scanner was added to the jdk.
    download a modern jdk and you'll be fine.
    %

  • Cannot find symbol : class ! problem

    Hello,
    I have 2 java files (CD.java & CDCatalog.java) in a package called "testPackage". I can compile CD.java, but CDCatalog.java (that creates CD instances) gives following error - cannot find symbol symbol : class CD
    Below are the 2 files, please tell me why I get this errors , thanks!
    1) CDCatalog.java
    package testPackages;
    import java.util.Hashtable;
    //import testPackages.CD;
    public class CDCatalog {
    /** The CDs, by title */
    private Hashtable catalog;
    public CDCatalog( ) {
    catalog = new Hashtable( );
    // Seed the catalog
    addCD(new CD("Nickel Creek", "Nickel Creek", "Sugar Hill"));
    addCD(new CD("Let it Fall", "Sean Watkins", "Sugar Hill"));
    addCD(new CD("Aerial Boundaries", "Michael Hedges", "Windham Hill"));
    addCD(new CD("Taproot", "Michael Hedges", "Windham Hill"));
    public void addCD(CD cd) {
    if (cd == null) {
    throw new IllegalArgumentException("The CD object cannot be null.");
    catalog.put(cd.getTitle( ), cd);
    2) CD.java
    package testPackages;
    public class CD {
    private String title;
    private String artist;
    private String label;
    public CD( ) {
    // Default constructor
    public CD(String title, String artist, String label) {
    this.title = title;
    this.artist = artist;
    this.label = label;
    public String getTitle( ) {
    return title;
    public void setTitle(String title) {
    this.title = title;
    public String getArtist( ) {
    return artist;
    public void setArtist(String artist) {
    this.artist = artist;
    public String getLabel( ) {
    return label;
    public void setLabel(String label) {
    this.label = label;
    public String toString( ) {
    return "'" + title + "' by " + artist + ", on " +
    label;
    }

    just tried it as well, no problems, provided you
    compile CD.java firstI just tried from the shell ans look at this...
    E:\testPackages>dir
    Volume in drive E is MYFLASHDISK
    Volume Serial Number is 483B-B160
    Directory of E:\testPackages
    05/24/2006  07:48 PM    <DIR>          .
    05/24/2006  07:48 PM    <DIR>          ..
    05/24/2006  07:20 PM             1,143 CD.java
    05/24/2006  07:50 PM             1,053 CD.class
    05/24/2006  07:56 PM               972 CDCatalog.java
                   3 File(s)          3,168 bytes
                   2 Dir(s)   1,024,503,808 bytes free
    E:\testPackages>javac -cp e:\testPackages CDCatalog.java
    CDCatalog.java:30: cannot find symbol
    symbol  : class CD
    location: class testPackages.CDCatalog
        public void addCD(CD cd) {
                          ^
    CDCatalog.java:24: cannot find symbol
    symbol  : class CD
    location: class testPackages.CDCatalog
            addCD(new CD("Nickel Creek", "Nickel Creek", "Sugar Hill"));
                      ^
    CDCatalog.java:25: cannot find symbol
    symbol  : class CD
    location: class testPackages.CDCatalog
            addCD(new CD("Let it Fall", "Sean Watkins", "Sugar Hill"));
                      ^
    CDCatalog.java:26: cannot find symbol
    symbol  : class CD
    location: class testPackages.CDCatalog
            addCD(new CD("Aerial Boundaries", "Michael Hedges", "Windham Hill"));
                      ^
    CDCatalog.java:27: cannot find symbol
    symbol  : class CD
    location: class testPackages.CDCatalog
            addCD(new CD("Taproot", "Michael Hedges", "Windham Hill"));
                      ^
    5 errors
    E:\testPackages>I am now officially confused. I even specified the exact path to the CD.class file and javac still didnt like it.
    I'll dig some more. It has to be related to the classpath some how..
    JJ
    Still Stumped.. I'll sleep on it..
    Message was edited by:
    Java_Jay

  • Cannot find Symbol :class CLOB

    Hi,
    I am using JDK1.5.0_06 and Oracle8.1.7.
    When i compile java program I am getting the following error
    cannot find symbol
    symbol : class CLOB
    I have added classes12.zip into classpath.
    Can anybody tell me why this errpr comes? Is there any other files instead of classes12.zip to be added (since its JDK1.5 version? )
    Thanks in advance
    neema

    you have mentioned about the class "studentList" but that class is not to be found in the code you have pasted. its instead "ListTest". And the "menu" function seems to b a part of "ListTest" class. Can you provide the structure of the classes "studentList" and "Student" so that the problem can be more clearly understood?
    also you are using the variable "Stdin" in the line int choice = Stdin.readInteger(); where as you have not declared this variable.
    in the "switch" statement you are calling two different functions for the same case "3" where as it should be "case 3" and "case 4" respectively.
    in the "main" you are calling the "menu" function without any parameter while you actually want to pass argument of type "studentList".

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

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

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

  • Java code Cannot find symbol problem

    I'm triing to compile three classes they are in the same directory yet it still says Cannot find symbol I can't find any thing in the spelling...
    file #1
    package banking;
    import java.util.*;
    public class Bank {
         private ArrayList<Account> accounts = new ArrayList<Account>();
         private int numOfCust;
         public void addCustomer(String fName, String lName){
              numOfCust += 1;
              accounts.add(Customer(fName, lName));
         public int getNumOfCustomers(){
              return numOfCust;
         public Account getCustomer(int custNum){
              return accounts.get(custNum);
    }Next Class used in above:
    package banking;
    public class Account {
         private double balance;
         public Account(double init_balance){
              balance = init_balance;
         public double getBalance(){
              return balance;
         public boolean deposit(double amount){
              if (amount < 0)
                   return false;
              else
                   balance += amount;
                   return true;
         public boolean withdraw(double amount){
              if (balance < amount)
                   return false;
              else
                   balance -= amount;
                   return true;
    }The last class:
    package banking;
    public class Customer {
         private String firstName;
         private String lastName;
         private Account account;
         public Customer(String fName, String lName){
              firstName = fName;
              lastName = lName;
         public String getFirstName(){
              return firstName;
         public String getLastName(){
              return lastName;
         public Account getAccount(){
              return account;
         public Account setAccount(Account acct){
              account = acct;
              return account;
    }

    here are the errors it gives..
    it is an assignment in a java class..
    OO-Programming methods..
    C:\JavaProgs\banking>javac Bank.java
    Bank.java:8: cannot find symbol
    symbol : class Account
    location: class banking.Bank
    private ArrayList<Account> accounts = new ArrayList<Account>();
    ^
    Bank.java:20: cannot find symbol
    symbol : class Account
    location: class banking.Bank
    public Account getCustomer(int custNum){
    ^
    Bank.java:8: cannot find symbol
    symbol : class Account
    location: class banking.Bank
    private ArrayList<Account> accounts = new ArrayList<Account>();
    ^
    Bank.java:13: cannot find symbol
    symbol : method Customer(java.lang.String,java.lang.String)
    location: class banking.Bank
    accounts.add(Customer(fName, lName));
    ^
    4 errors

  • Java:3: cannot find symbol

    i'm learning java
    but when i do a java projram i got a error
    hare is that
    Test1.java:3: cannot find symbol
    symbol : variable Out
    location: class java.lang.System
    System.Out.Println("john");
    ^
    1 error
    i got this error. i see "." this symbol
    then what should i do ?

    Java is case-sensitive. Don't type "Out" and "Println" when you're supposed to type "out" and "println".
    Try this:
    System.out.println("john");

  • 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

  • Asking the mod to lock this thread.

    I don't know where to turn to. I don't think it belongs to fissue at microsoft dot com, and I can't use the Abuse button as no one is in violation of COC. So, I am posting my " lock this thread " request here. The thread in question has gone through

  • Textarea not processing the onkeyup/onkeydown quickly enough

    I'm trying to limit the number of characters allowable in a textarea. However, in Safari, when I get up to the last allowable character, say, character 3999 of 4000 maximum, if I quickly press keys, it seems that I can get the textarea to accept the

  • Unable to create JVM

    Hi ! In my project, i need to call a java method from C code using JNI. Here is the Java code: public class Prog{      public static void main(String args[]){           System.out.println("Hello Java Native"+args[0]); }And C code: #include <jni.h> vo

  • VGA hardware or driver to run Cyberlink YouCam. What should i do

    dear sir, i tried to open my youcam webcam (hp pavilion g7) and it is saying i do not have the compatible VGA hardware or driver to run Cyberlink YouCam. What should i do

  • Compiling an applet that the MS JVM will execute

    I need to have an applet work with the Microsoft JVM that comes with IE. It does not like anything compiled with jdk 1.3 or better. Do I need to dig up J++ somewhere or will an earlier version of the jdk work? How I can accomplish this?