Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > cannot find symbol?

Reply
Thread Tools

cannot find symbol?

 
 
lbrtchx@gmail.com
Guest
Posts: n/a
 
      03-20-2008
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
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      03-20-2008
On Mar 20, 9:19*pm, (E-Mail Removed) wrote:

> *What does this error mean in this case?


Java is case sensitive, from a-Z.

--
Andrew T.
PhySci.org
 
Reply With Quote
 
 
 
 
lbrtchx@gmail.com
Guest
Posts: n/a
 
      03-20-2008
> > 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

 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      03-20-2008
On Thu, 20 Mar 2008 03:19:48 -0700 (PDT), http://www.velocityreviews.com/forums/(E-Mail Removed) wrote,
quoted or indirectly quoted someone who said :

>ReadInFls00Test.java:9: cannot find symbol
>symbol : class Unzip00
>location: class ReadInFls00Test
> DKPrx[0] = new Unzip00(aZ[0]);


http://mindprod.com/jgloss/compileer...NNOTFINDSYMBOL

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

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

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      03-20-2008
(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exclude action of Find::Find::find in subdirectories withknown names? vdvorkin Perl Misc 3 02-14-2011 05:28 AM
How to exclude action of Find::Find::find in subdirectories withknown names? vdvorkin Perl Misc 0 02-10-2011 05:18 PM
Cannot upgrade Google Earth cannot find {18D3ED9E-183C-4C00-B333-FB0C2FAE8B0F} joewo Computer Support 3 10-09-2007 05:23 AM
Find.find does not find orphaned links? Wybo Dekker Ruby 1 11-15-2005 02:50 PM
Browser cannot find any server anymore after 5 minutes of normal activity (" The page cannot be displayed ") reply@newsgroup.please Computer Support 6 01-05-2004 04:03 AM



Advertisments