cannot find symbol?

Discussion in 'Java' started by lbrtchx@gmail.com, Mar 20, 2008.

  1. Guest

    Hi,

    I am trying to create an abstract class with their particular
    implementations for the different decompress formats java supports (I
    know it works. I have done it before), but I am getting some
    uncomprehensible "cannot find symbol" error, even though I did compile
    the implementation classes first and I am making them accessible
    through the classpath

    What does this error mean in this case?

    How can I fix it?

    lbrtchx

    sh-3.1# javac -cp ./activation.jar:./tar.jar:. ReadInFls00Test.java
    ReadInFls00Test.java:9: cannot find symbol
    symbol : class Unzip00
    location: class ReadInFls00Test
    DKPrx[0] = new Unzip00(aZ[0]);
    ^
    ReadInFls00Test.java:10: cannot find symbol
    symbol : class GUnzip00
    location: class ReadInFls00Test
    DKPrx[1] = new GUnzip00(aZ[1]);
    ^
    ReadInFls00Test.java:11: cannot find symbol
    symbol : class TARGUnzip00
    location: class ReadInFls00Test
    DKPrx[2] = new TARGUnzip00(aZ[2]);
    ^
    3 errors

    sh-3.1# ls -l *UnZip00.class
    -rw-r--r-- 1 root root 1814 Mar 20 06:05 GUnZip00.class
    -rw-r--r-- 1 root root 2343 Mar 20 06:00 TARGUnZip00.class
    -rw-r--r-- 1 root root 2577 Mar 20 06:00 UnZip00.class

    sh-3.1# ls -l *.java
    -rw-r--r-- 1 root root 232 Mar 20 06:09 AbsDkmprss00.java
    -rw-r--r-- 1 root root 1579 Mar 20 06:09 GUnZip00.java
    -rw-r--r-- 1 root root 522 Mar 20 06:07 ReadInFls00Test.java
    -rw-r--r-- 1 root root 2333 Mar 20 06:09 TARGUnZip00.java
    -rw-r--r-- 1 root root 2085 Mar 20 06:09 UnZip00.java
     
    , Mar 20, 2008
    #1
    1. Advertising

  2. On Mar 20, 9:19 pm, wrote:

    >  What does this error mean in this case?


    Java is case sensitive, from a-Z.

    --
    Andrew T.
    PhySci.org
     
    Andrew Thompson, Mar 20, 2008
    #2
    1. Advertising

  3. Guest

    > > What does this error mean in this case?
    >
    > Java is case sensitive, from a-Z.
    >

    Thanks!

    I must have had my head up my ass to not see this. It amazes me how
    these stupid on your face bugs/erros can still bite you
    >

    lbrtchx
     
    , Mar 20, 2008
    #3
  4. Roedy Green Guest

    Roedy Green, Mar 20, 2008
    #4
  5. Lew Guest

    wrote:
    > sh-3.1# ls -l *UnZip00.class
    > -rw-r--r-- 1 root root 1814 Mar 20 06:05 GUnZip00.class
    > -rw-r--r-- 1 root root 2343 Mar 20 06:00 TARGUnZip00.class
    > -rw-r--r-- 1 root root 2577 Mar 20 06:00 UnZip00.class
    >
    > sh-3.1# ls -l *.java
    > -rw-r--r-- 1 root root 232 Mar 20 06:09 AbsDkmprss00.java
    > -rw-r--r-- 1 root root 1579 Mar 20 06:09 GUnZip00.java
    > -rw-r--r-- 1 root root 522 Mar 20 06:07 ReadInFls00Test.java
    > -rw-r--r-- 1 root root 2333 Mar 20 06:09 TARGUnZip00.java
    > -rw-r--r-- 1 root root 2085 Mar 20 06:09 UnZip00.java


    Your listings imply that you have your classes in the default package, that
    you have .class and .java files in the same directory, and that you do your
    work as root. That's three mistakes, if you actually did those things.

    --
    Lew
     
    Lew, Mar 20, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Danny
    Replies:
    1
    Views:
    4,716
    Andrew Thompson
    May 26, 2004
  2. Replies:
    5
    Views:
    6,705
    Tilman Bohn
    Dec 16, 2004
  3. luch
    Replies:
    5
    Views:
    6,377
  4. fybar

    cannot find symbol

    fybar, Apr 25, 2006, in forum: Java
    Replies:
    6
    Views:
    9,313
    Oliver Wong
    Apr 25, 2006
  5. Replies:
    6
    Views:
    2,019
Loading...

Share This Page