Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

cannot find symbol?

Thread view: 
lbrtchx@gmail.com - 20 Mar 2008 11:19 GMT
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
Andrew Thompson - 20 Mar 2008 12:17 GMT
>  What does this error mean in this case?

Java is case sensitive, from a-Z.

--
Andrew T.
PhySci.org
lbrtchx@gmail.com - 20 Mar 2008 13:09 GMT
> >  What does this error mean in this case?
>
> Java is case sensitive, from a-Z.

Thanks!

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

lbrtchx
Roedy Green - 20 Mar 2008 13:53 GMT
>ReadInFls00Test.java:9: cannot find symbol
>symbol  : class Unzip00
>location: class ReadInFls00Test
>  DKPrx[0] = new Unzip00(aZ[0]);

http://mindprod.com/jgloss/compileerrormessages.html#CANNOTFINDSYMBOL

see also http://mindprod.com/jgloss/codingconventions.html

dkPrx [] had better be defined as an array in scope.
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Lew - 20 Mar 2008 14:03 GMT
> sh-3.1# ls -l *UnZip00.class
> -rw-r--r-- 1 root root 1814 Mar 20 06:05 GUnZip00.class
[quoted text clipped - 7 lines]
> -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.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.