Cannot find symbol while referring to an overloaded constructor

Hi, I've a VERY strange problem. It's an hour I'm trying to work this out without any luck....
here is my code
     public DueDPanel(int limite, int valore, int incremento) throws NumberOutOfBoundException
          this.limite=limite;
          setValore(valore);
          upBy=incremento;
     public DueDPanel(int limite, int valore) throws NumberOutOfBoundException
          { DueDPanel(limite,valore,1); }
     public DueDPanel(int limite) throws NumberOutOfBoundException
          { DueDPanel(limite,0,1); }
     public DueDPanel() throws NumberOutOfBoundException
          { DueDPanel(99,0,1); }I get a c-time error
.\DueDPanel.java:25: cannot find symbol
symbol : method DueDPanel(int,int,int)
location: class DueDPanel
{ DueDPanel(limite,valore
^
.\DueDPanel.java:28: cannot find symbol
symbol : method DueDPanel(int,int,int)
location: class DueDPanel
{ DueDPanel(limite,0,1);
^
.\DueDPanel.java:31: cannot find symbol
symbol : method DueDPanel(int,int,int)
location: class DueDPanel
{ DueDPanel(99,0,1); }
How could it be? why in the world it cannot find my int,int,int method?
I'm damn sure this is an easy problem, but..... thankyou sooooo much!!

Ok, a superior-class developer friend of mine found a solution.
I simply replaced the method indetifier with this(....).
public DueDPanel() throws NumberOutOfBoundException
          { this(99,0,1); }Could someone please explain why this didn't work as I expeced?

Similar Messages

  • "cannot find symbol" error while compiling the RMI

    I am trying to implement a simple RMI.
    I have the following :
    1. HelloInterface which has the SayHello method defined.
    2. HelloImpl which has the implementation of Say Hello
    3. Server code
    4. Client code
    the HelloInterface compiles properly.
    but when i say javac HelloImpl
    package rmisample;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    import java.rmi.RemoteException;
    public class HelloImpl extends UnicastRemoteObject implements HelloInterface{ --> this is where i get the error
    /** Creates a new instance of HelloImpl */
    public HelloImpl()throws RemoteException {
    super();
    public String SayHello(String s) throws RemoteException
    return "hello" +s;
    I get the following error:
    C:\Myjava\RMISample\src\rmisample>javac HelloImpl.java
    HelloImpl.java:18: cannot find symbol
    symbol: class HelloInterface
    public class HelloImpl extends UnicastRemoteObject implements HelloInterface{
    All 4 files are in the same directory.
    Am not sure what is going wrong and am new to this.
    Edited by: topcatin on Sep 14, 2007 6:52 AM

    The problem is probably that the compiler can't find the file with that class definition.
    Try changing your javac call so that is starts off
    javac -classpath .
    The dot is important!
    If it works, then go read up on classpaths.

  • Cannot find symbol: trying to index a method output

    The problem appears at the end of the code
    import java.util.*;
    public class Dreieck
      //Die Seiten des Dreiecks
      //Sides of triangle
       Object[] n= new Object[3];
       Object[] m= new Object[3];
       Object[] o= new Object[3];
      //Jede Seite erhält enthält 2 Eckpuckte und das anliegende Dreieck
      // Each side contains 2 corner ponts and the adjacent triangle
        Dreieck ( Punkt a, Punkt b, Punkt c, Dreieck e, Dreieck f, Dreieck g) {
        n[1]=a; n[2]=b; n[3]=e;
        m[1]=b; m[2]=c; m[3]=f;
        o[1]=c; o[2]=a; o[3]=g;
         int[] getside(Dreieck asker){
          if (n[3]== asker)
           return ((Punkt) m[2]).getposition();
         else if (m[3]== asker)
            return ((Punkt) o[2]).getposition();
         else if (o[3]== asker)
           return  ((Punkt) n[2]).getposition();
         // nur zum compilieren hinzugefügt
         else
          return ((Punkt) n[1]).getposition();
        int skaprod(int[] vec, int[] tor){
          return ((vec[1] * tor[1]) + (vec[2] * tor[2])) * Math.abs((vec[1] * tor[1]) + (vec[2] * tor[2])) /(((vec[1]*vec[1]) + (vec[2]*vec[2])) *((tor[1]*tor[1])+(tor[2]*tor[2])));
        int revskaprod(int[] vec, int[] tor){
          return ((vec[1] * (-tor[1])) + (vec[2] * (-tor[2]))) * Math.abs((vec[1] * (-tor[1])) + (vec[2] * (-tor[2]))) /(((vec[1]*vec[1]) + (vec[2]*vec[2])) *(((-tor[1])*(-tor[1]))+((-tor[2])*(-tor[2]))));
        void evertCheck(){
          int[] eins = ((Punkt) n[1]).getposition();
          int[] zwei = ((Punkt) n[2]).getposition();
          int[] drei = ((Punkt)  m[2]).getposition();
          int[] seiteA= {eins[1] -zwei[1],eins[2] -zwei[2]};
          int[] seiteB= {zwei[1] -drei[1],zwei[2] -drei[2]};
          int[] seiteC= {drei[1] -eins[1],drei[2]-eins[2]};
          int[] nachA1= {(e.asker(this))[1] -zwei[1],(e.asker(this))[2] -zwei[2]};
          //int[] NachB1=
          //int[] NachC1=
          //int[] NachA2=
          //int[] NachB2=
          //int[] NachC2=
    } Dreieck(triangle) is an incomplete class refering to the class Punkt(point):
    import java.util.*;
    public class Punkt
      int[] position = new int [2];
      LinkedList nachbarn = new LinkedList();
      Punkt(int a, int b){
      position[1]=a; position[2]=b; }
      int[] getposition() { return position; }
      void changeposition(int c,int d) {
       position[1]+=c; position[2]+=d; }
        }Anm: nachbarn = neighbours
    I am trying to calculate the vectors, to calculate the scalar products, to get the cos of the angle, to check for certain conditions occuring XD
    This class is part of an idea for a certain 2D physics system, basically instead of using collision checks or forcefields I connect the points with a network of lines
    and only let the points interact with their direct neighbours while also allowing "signals"to travel trough connections.
    Why do I do this? So that the O(n)= n (the needed processing power is only linearly dependant on number of points)
    Whats the challenge? Well its not easy to find conditions for reconnections so that points that are connected are relaitvely near to each other.
    Why such imprecision? Game phsysics does not always have to be precise besides when I operate with a large number of points things smoothen up statistically.
    Game physics? I have some interest in artificial life this system is part of me trying to write an artificial life simulation.
    Of course my current version is pretty clumsy but i hope it can be streamlined for processing power.

    I guess you interpreted "post" as this topic, when I meant the reply I gave you, then it would make sense you assume I have withold information.
    Cause there really is no specific information for me to provide, it was a simple forward problem of a cannot find symbol error.
    (I know that help can only be provided with enough information, thats why I gave you the whole code stated my intentions in the title as well as additional text etc., so you say thats the wrong "kind" of information?)
    As for your argument against compiling I must admit I do not understand it cause its a copy, paste and click action to compile the code.
    Ah but well thats not so important did not want to ruin your mood actually found the solution :)
    int[] nachA1= {(((Dreieck) n[3]).getside(this))[1] -zwei[1], (((Dreieck) n[3]).getside(this))[2]-zwei[2]};Edited by: casualPhilosoph on Jan 23, 2009 2:28 PM

  • Xerces cannot find symbol problem

    In my program I get an Xml from an exist database and want to place it in the hard drive.
    I have made the xerces imports I need:
    import org.apache.xerces.domx.XGrammarWriter.OutputFormat;
    import org.apache.xml.serialize.XMLSerializer;I have the jar on my classpath.and the code I am getting trouble with is:
    OutputFormat format = new OutputFormat(doc2);
                        format.setIndenting(true);
                        XMLSerializer serializer = new XMLSerializer(new FileOutputStream(new File("C:\\Configuration\\XmlCopy.xml")), format);I get the following errors
    C:\.....\Wizard1.java:2946: cannot find symbol
    symbol  : constructor OutputFormat(org.w3c.dom.Document)
    location: class org.apache.xerces.domx.XGrammarWriter.OutputFormat
                        OutputFormat format = new OutputFormat(doc2);
    C:\.....\Wizard1.java:2947: cannot find symbol
    symbol  : method setIndenting(boolean)
    location: class org.apache.xerces.domx.XGrammarWriter.OutputFormat
                        format.setIndenting(true);
    C:\....\Wizard1.java:2948: cannot find symbol
    symbol  : constructor XMLSerializer(java.io.FileOutputStream,org.apache.xerces.domx.XGrammarWriter.OutputFormat)
    location: class org.apache.xml.serialize.XMLSerializer
                        XMLSerializer serializer = new XMLSerializer(new FileOutputStream(new File("C:\\Configuration\\XmlCopy.xml")), format);Any ideas about what I'm doing wrong?

    StruL wrote:
    Instead of GrammarWriter.OutPutFormat.class it says GrammarWriter$OutPutFormat.class.
    relevant or plain stupid?
    Neither really,
    GrammarWriter.OutPutFormat is the name of the class,
    GrammarWriter$OutPutFormat.class is the file into which the class is stored.
    As to you problem the error messages you posted referred to
    C:\.....\Wizard1.java:2946: cannot find symbol
    symbol  : constructor OutputFormat(org.w3c.dom.Document)
    location: class org.apache.xerces.domx.XGrammarWriter.OutputFormatnote dom*x* and XGrammarWriter ,
    this is not the same as dom.GrammarWriter...

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

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

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

  • Need help with class info and cannot find symbol error.

    I having problems with a cannot find symbol error. I cant seem to figure it out.
    I have about 12 of them in a program I am trying to do. I was wondering if anyone could help me out?
    Here is some code I am working on:
    // This will test the invoice class application.
    // This program involves a hardware store's invoice.
    //import java.util.*;
    public class InvoiceTest
         public static void main( String args[] )
         Invoice invoice1 = new Invoice( "1234", "Hammer", 2, 14.95 );
    // display invoice1
         System.out.println("Original invoice information" );
         System.out.println("Part number: ", invoice1.getPartNumber() );
         System.out.println("Description: ", invoice1.getPartDescription() );
         System.out.println("Quantity: ", invoice1.getQuantity() );
         System.out.println("Price: ", invoice1.getPricePerItem() );
         System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
    // change invoice1's data
         invoice1.setPartNumber( "001234" );
         invoice1.setPartDescription( "Yellow Hammer" );
         invoice1.setQuantity( 3 );
         invoice1.setPricePerItem( 19.49 );
    // display invoice1 with new data
         System.out.println("Updated invoice information" );
         System.out.println("Part number: ", invoice1.getPartNumber() );
         System.out.println("Description: ", invoice1.getPartDescription() );
         System.out.println("Quantity: ", invoice1.getQuantity() );
         System.out.println("Price: ", invoice1.getPricePerItem() );
         System.out.println("Invoice amount: ", invoice1.getInvoiceAmount() );
    and that uses this class file:
    public class Invoice
    private String partNumber;
    private String partDescription;
    private int quantityPurchased;
    private double pricePerItem;
         public Invoice( String ID, String desc, int purchased, double price )
              partNumber = ID;
         partDescription = desc;
         if ( purchased >= 0 )
         quantityPurchased = purchased;
         if ( price > 0 )
         pricePerItem = price;
    public double getInvoiceAmount()
         return quantityPurchased * pricePerItem;
    public void setPartNumber( String newNumber )
         partNumber = newNumber;
         System.out.println(partDescription+" has changed to part "+newNumber);
    public String getPartNumber()
         return partNumber;
    public void setDescription( String newDescription )
         System.out.printf("%s now refers to %s, not %s.\n",
    partNumber, newDescription, partDescription);
         partDescription = newDescription;
    public String getDescription()
         return partDescription;
    public void setPricePerItem( double newPrice )
         if ( newPrice > 0 )
    pricePerItem = newPrice;
    public double getPricePerItem()
    return pricePerItem;
    Any tips for helping me out?

    System.out.println("Part number:
    "+invoice1.getPartNumber;
    The + sign will concatenate invoice1.getPartNumber()
    after "Part number: " forming only one String.I added the plus sign and it gives me more errors:
    C:\>javac InvoiceTest.java
    InvoiceTest.java:16: operator + cannot be applied to java.lang.String
            System.out.println("Part number: ",   + invoice1.getPartNumber() );
                                                  ^
    InvoiceTest.java:17: cannot find symbol
    symbol  : method getPartDescription()
    location: class Invoice
            System.out.println("Description: ", + invoice1.getPartDescription() );
                                                          ^
    InvoiceTest.java:17: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Description: ", + invoice1.getPartDescription() );
                      ^
    InvoiceTest.java:18: cannot find symbol
    symbol  : method getQuantity()
    location: class Invoice
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                                                       ^
    InvoiceTest.java:18: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                      ^
    InvoiceTest.java:19: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Price: ", + invoice1.getPricePerItem() );
                      ^
    InvoiceTest.java:20: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
                      ^
    InvoiceTest.java:24: cannot find symbol
    symbol  : method setPartDescription(java.lang.String)
    location: class Invoice
            invoice1.setPartDescription( "Yellow Hammer" );
                    ^
    InvoiceTest.java:25: cannot find symbol
    symbol  : method setQuantity(int)
    location: class Invoice
            invoice1.setQuantity( 3 );
                    ^
    InvoiceTest.java:30: operator + cannot be applied to java.lang.String
            System.out.println("Part number: ", + invoice1.getPartNumber() );
                                                ^
    InvoiceTest.java:31: cannot find symbol
    symbol  : method getPartDescription()
    location: class Invoice
            System.out.println("Description: ", + invoice1.getPartDescription() );
                                                          ^
    InvoiceTest.java:31: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Description: ", + invoice1.getPartDescription() );
                      ^
    InvoiceTest.java:32: cannot find symbol
    symbol  : method getQuantity()
    location: class Invoice
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                                                       ^
    InvoiceTest.java:32: cannot find symbol
    symbol  : method println(java.lang.String,int)
    location: class java.io.PrintStream
            System.out.println("Quantity: ", + invoice1.getQuantity() );
                      ^
    InvoiceTest.java:33: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Price: ", + invoice1.getPricePerItem() );
                      ^
    InvoiceTest.java:34: cannot find symbol
    symbol  : method println(java.lang.String,double)
    location: class java.io.PrintStream
            System.out.println("Invoice amount: ", + invoice1.getInvoiceAmount() );
                      ^
    16 errors

  • Cannot find symbol even though it's there.

    I am having an issue compiling a java class in oracle. I have a java class that will run an executable. I want to call that java class from a difference class and when I try to compile that class, it fails with Cannot Find Symbol.
    This is what errors, and it errocs when I declare ec as ExecCMD.
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "MS_FS_FUNCTIONS" AS
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import oracle.sql.*;
    import ms_fs_execcmd.ExecCMD.*;
    public class exportPDF
        public static String export_PDF(String p_pdf_contents)
            ExecCMD ec ;
           ec = new ExecCMD("ExportPDFData.exe");
            return "string";
    This is the class im trying to call.
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED MS_FS_EXECCMD AS
    package ms_fs_execcmd;
    import java.util.*;
    import java.io.*;
    public class ExecCMD
        public static void main(String args[])
            try
            {   if (args.length > 0 ){        
                    Runtime rt = Runtime.getRuntime();
                    Process proc = rt.exec(args[0]);
                    InputStream stderr = proc.getErrorStream();
                    InputStreamReader isr = new InputStreamReader(stderr);
                    BufferedReader br = new BufferedReader(isr);
                    String line = null;
                    System.out.println("<ERROR>");
                    while ( (line = br.readLine()) != null)
                    System.out.println(line);
                    System.out.println("</ERROR>");
                    int exitVal = proc.waitFor();
                    System.out.println("Process exitValue: " + exitVal);
            } catch (Throwable t)
                t.printStackTrace();
    here is the error message.
    [Error]  (0: 0): MS_FS_FUNCTIONS:11: cannot find symbol
    [Error]  (0: 0): symbol  : constructor ExecCMD(java.lang.String)
    [Error]  (0: 0): location: class ExecCMD
    [Error]  (0: 0):        ec = new ExecCMD("ExportPDFData.exe");
    [Error]  (0: 0):             ^
    [Error]  (0: 0): 1 error

    Bill,
    I'm having exactly the same problem with trying to install Portal 4.0. Has
    anybody given you an answer to this problem?
    Thanks,
    Bill Goggin wrote:
    I recently moved my evaluation copy of WebLogic 6.1 SP 1 from /opt to
    /usr/local on my RedHat 7.1 box. WebLogic runs fine from the new
    location. However, when I try to install my evaluation copy of WLPortal
    4.0, it insists that WebLogic 6.1 SP 1 is not installed in my BEA_HOME,
    even though it is. I've uninstalled and re-installed WebLogic many
    times, but it still won't work. Does the uninstall miss some files? Has
    anyone else had this problem?

  • Cannot find symbol error when compiling in different packages

    Hey all,
    I'm trying to divide my project into a sensible hierarchy. This is what I want:
    MyProject
    MyProject/src ................................. where all the source files are (no further directories)
    MyProject/classes
    MyProject/classes/Main.class
    MyProject/classes/classes2 ................ sorry for not being creative XD
    MyProject/classes/classes2/Age.classNow, Age uses Main, and this is where the trouble is. I'm using javac directly to compile Age, and this is how I'm doing it:
    //from MyProject
    javac -cp classes src/Age.javaAnd I get this error:
    bla bla bla...cannot find symbol
    symbol  : variable Main
    location: class classes2.Age
              years = (byte)(Main.year - m.getYear());
                             ^Main is already compiled and in place.
    Also, this is how Age.java starts:
    package classes2;
    public class Age
    {...etcI'm using JCreator as an IDE (and using it's own build function, the same error occurs, which is why I tried directly compiling the file).
    Why can't javac find Main.class? I tried searching Google, but my particular problem didn't seem to crop up.
    Hope I provided enough information, and ask if more is needed.
    Many thanks :)

    If Main is not in a package (which it appears not to be), then it cannot be referenced by any class that is in a package. If Main is in a package, then you'll need to refer to it by it's fully-qualified name (or import it as such) if it's not in the same package as the class that's referring to it, and Main.class will have to be in a directory that corresponds to its package.
    Also, though the compiler may not require it, your source code directory structure should match your package hierarchy.

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

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

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

  • Cannot find symbol:rms

    when I try to include javax.microedition.rms the I get an error that says:
    "C:\Documents and Settings\FinalYearJavaProjects\MA\src\Address.java:3: cannot find symbol
    symbol : class rms
    location: package javax.microedition
    import javax.microedition.rms;
    1 error"

    import java.io.*;
    ublic class MyFileReader
    public static void main(String args[])
    throws IOException
    BufferedReader file =
    new BufferedReader(new
    FileReader("JavaFileReaderTest.dat"));   // Sets up
    the reader object which opens the specified file
    ing inString;
    while((inString = file.readLine()) != null)
    // While it's not the end of
    the file
    System.out.println(inString);
    file.close();
    / Closes the file
    }Or...
    // UIL Computer Science
    // Reads from a file
    import java.io.*;
    public class FileReader
        public static void main(String args[])
        throws IOException
            BufferedReader file =
                new BufferedReader(new java.io.FileReader("JavaFileReaderTest.dat"));   // Sets up the reader object which opens the specified file
            String inString;
            while((inString = file.readLine()) != null)                         // While it's not the end of the file
                System.out.println(inString);
            file.close();                                                       // Closes the file
    }Or...
    // UIL Computer Science
    // Reads from a file
    import java.io.*;
    public class FileReader extends BufferedReader {
        public FileReader() throws IOException {
            super(new java.io.FileReader("JavaFileReaderTest.dat"));
        public static void main(String args[]) throws IOException {
            FileReader file = new FileReader();
            String inString = null;
            while((inString = file.readLine()) != null) {
                System.out.println(inString);
            file.close();
    }Hehehe... c",)

  • Jdk6 - cannot find symbol

    Hi,
    I've just encountered a problem compiling with sun jdk6, that I've never met before.
    I've the class Arch that uses objects of the class Node.
    I compile the Node class without any problem ( javac -cp "../lib/*" it/bcdm/di/core/Node.java); but while compiling the Arch class after that, I get
    cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         private Node da = null;
         ^
    Either the Node and the Arch class stay within the same folder it/bcdm/di/core.
    I've already tried to include within the classpath, the path of the folder containing the file Node.class, in this way:
    javac -cp "../lib/*;it/bcdm/di/core/*" it/bcdm/di/core/Arch.java
    and I've also already tried this:
    export CLASSPATH=$CLASSPATH:/pathOfMyProject/it/bcdm/di/core/
    and also
    export PATH=$PATH:/pathOfMyProject/it/bcdm/di/core/
    but unsuccessful...
    this is the output of the verbose compilation mode:
    [parsing started it/bcdm/di/core/Arch.java]
    [parsing completed 35ms]
    [search path for source files: ../lib/*,it/bcdm/di/core/*]
    [search path for class files: /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/resources.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/rt.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/sunrsasign.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/jsse.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/jce.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/charsets.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/classes,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/sunpkcs11.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/sunjce_provider.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/localedata.jar,/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/ext/dnsns.jar,../lib/*,it/bcdm/di/core/*]
    [loading java/lang/Comparable.class(java/lang:Comparable.class)]
    [loading java/lang/Object.class(java/lang:Object.class)]
    [loading java/lang/String.class(java/lang:String.class)]
    it/bcdm/di/core/Arch.java:5: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         private Node da = null;
         ^
    it/bcdm/di/core/Arch.java:6: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         private Node a = null;
         ^
    [loading java/lang/ClassCastException.class(java/lang:ClassCastException.class)]
    it/bcdm/di/core/Arch.java:49: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public Node getFrom(){
         ^
    it/bcdm/di/core/Arch.java:52: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public Node getTo(){
         ^
    it/bcdm/di/core/Arch.java:72: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public void setFrom(Node x){
         ^
    it/bcdm/di/core/Arch.java:75: cannot find symbol
    symbol : class Node
    location: class it.bcdm.di.core.Arch
         public void setTo(Node y){
         ^
    [checking it.bcdm.di.core.Arch]
    [loading java/lang/Error.class(java/lang:Error.class)]
    [loading java/lang/RuntimeException.class(java/lang:RuntimeException.class)]
    [loading java/lang/Exception.class(java/lang:Exception.class)]
    [loading java/lang/Throwable.class(java/lang:Throwable.class)]
    this is my java version:
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
    and I made these attempts either in debian and in windows XP, with the same java version installed.
    have you any idea to solve this compilation error?

    warnerja wrote:
    masijade, I think you might be confused as to what the OP is doing with that asterisk. As yawmark shed some light on it earlier, the wildcard lets the user conveniently include all .jar files it finds in the /lib directory, as if the user did this:
    -cp /lib/one.jar;/lib/two.jar;/lib/three.jar
    (assuming the /lib directory contains one.jar, two.jar, and three.jar)Yes, I know, but the op is complaining that he just compiled "Node", then by compiling "Arch" it could not find "Node", which means it won't be in those jars, anyway. (Edit: If he had used a -d option, the classes would have been in that directory, but then the "*", I believe, would hinder, not help, at least in respect to those newly compiled classes.)
    Also, OP, if you are not specifiying a -d option, then you also need to include "." on the classpath, as the classfiles will appear "in place" (i.e. right alongside the corresponding java files when compiled using the above command), which means that "." must also be on the classpath (as that is the "root" for the newly compiled classes).
    Edit Again, Although I will admit I hadn't remembered about the "*" being a new feature in 6 (though now that it has been mentioned as such I do remember having read about it, once).

Maybe you are looking for

  • Using LoaderInfo to get params from HTML

    Hi All Working my way throught the new things in AS3. One problem is getting <params> passed to the .swf from the HTML file. I can make it work if the code is embedded via Actions on frame 1, but not when the code is in an external .as file! The exam

  • Ldapsearch by a part of dn into memberOf

    Hello everyone, I had have example, which search users by a part of specified CN, "give me every user where CN start from "je"", thats work fine 1) E:\>ldapsearch -h 172.28.38.31 -p 389 -D "cn=administrator,cn=users,dc=domain,dc=local" -w welcome_1 -

  • Need help with having a signature

    Ok admittedly I haven't a Dickee bird or for that matter a clue as to how to write a signature for my posts? Have looked through everything and am stumped.  Please help 

  • How to quit apps?

    hi, i've recently switched from blackberry to the iphone 4 and was curious to how i quit apps? on my blackberry i know that if i keep anything running in the background e.g. mail, browser and not formally 'close' it, it will slow down my bb. does iph

  • How to connect via telnet with Java?

    I want to develop an application in a server with solaris 8. I want to access from this server to another server in a LAN via telnet and write down the information i am getting in a file. How i can do this in java? it's a good alternative? or i shoul