Java Studio Enterprise 8.1 and jdk1.6 - cannot find symbol

Hi,

I am using subj. The problem I have is that I declared 2-3 classes with methods in one package. I made an object of the class and use intellisense to navigate to the method I need but when I try to compile the code I have "cannot find symbol" error on the method I intellisensed to. It seems to me that it is IDE problem.

Does anyone know how to work around it?

The code is below, in case you are interested.

-

package webservice;

import java.io.*;

public class Main {

/** Creates a new instance of Main */

public Main() {

}

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

String filename = null;

String timestamp = null;

try {

Q q = new Q();

timestamp = "2007-06-01";

QList ql = q.getList(timestamp);

System.out.println("--Ok-");

}

catch(Exception e) {

System.out.println("An Exception thrown in Main(). e = "+e.toString());

}

}

}

package webservice;

public class Q {

public Q() {

}

public QList getList(String timestamp) {

QList result = null;

return result;

}

-

Thanks,

Dmitry

[1260 byte] By [dimka71a] at [2007-11-27 10:31:40]
# 1

You may need to add the jar for your library to the project. To do this, right click the project and select properties. Select the libraries tab and add the jar or folder to the project.

kris.richardsa at 2007-7-28 18:11:03 > top of Java-index,Development Tools,Java Tools...
# 2

Thanks for that Kris.

I found the root of my problem. In this example I used a remote webservice to retrieve some data. It happened to be that the generated class file from wsdl and my custom class had the same name.

So, instead of reporting as ambiguous definition error the ide picked up the wrong class and did not find the method I intended to use.

Hopefully it will help someone else having the same problem.

Dmitry

dimka71a at 2007-7-28 18:11:03 > top of Java-index,Development Tools,Java Tools...