[redhat-ccm-list] query about access query in java class

Vadim Nasardinov vadimn at redhat.com
Tue Mar 9 14:30:20 UTC 2004


Here's a five-line test that shows where your problem is:


|$ cat Test.java
|// import java.util.ArrayList;
|
|public class Test {
|    { new ArrayList(); }
|}
|$ cat -n Test.java
|     1  // import java.util.ArrayList;
|     2  
|     3  public class Test {
|     4      { new ArrayList(); }
|     5  }
|$ javac Test.java
|Test.java:4: cannot resolve symbol
|symbol  : class ArrayList  
|location: class Test
|    { new ArrayList(); }
|          ^
|1 error

If you uncomment the import statement at line 1, Test.java will compile.

Hope this helps.


On Monday 08 March 2004 23:51, mukeshprasad_ddn wrote:
> hi all
> i write a java class and in this i want access pdl file  query i don't know
> how give me solution and i getting this error
> [javac] Compiling 1 source file to
> /var/ccm-devel/dev/tomcat/wafproject/wafproject/build/classes [javac]
> /var/ccm-devel/dev/tomcat/wafproject/wafproject/src/com/EOL/login/LoginUIC.
>java:65: cannot resolve symbol [javac] symbol  : class Session
>     [javac] location: class com.EOL.login.LoginUIC
>     [javac]             Session session = SessionManager.getSession();





More information about the Redhat-ccm-list mailing list