1 Attachment(s)
java:34:cannot find symbol
Hi,
I trying to compile a java file but get the following error:
SimpComp.java:34:cannot find symbol.
I believe it has something to do with my classpaths. I don't really understand this yet, being new to java. This is what I've done so far:
Using: Coco Compiler, Java, and JGrasp
Setup:
1. Java Classpath I created an environment variable, Classpath= C:\Program Files\Java\jdk1.6.0_07\bin
2. Coco I created an environment variable, CocoJTHome=C:\Coco
3. I commented out the package //package SimpComp; I think this may be where the problem is coming from because the class files are not being found.
I am writing a compiler in Coco and using jGrasp to check the SimpComp.atg file - and this will parse correctly. I compiled all of the .java files to create class files.
When I try to execute a java file SimpComp.java file I get the following error:
SimpComp.java:34:cannot find symbol - there are 10 errors listed.
How do I fix this error? How do I set up the classfiles to be found? I attached all of the files.
Thanks!! MissyMadi