Page 1 of 1
cannot compile. damn fustrated
Posted: Sun Feb 20, 2005 7:35 pm
by king
My programs compile fine until I try to compile a java file that calls another class. Then I get an error that says cannot resolve symbol for the my class declaration. I have all my files in the same folder and the .class file is there. I have uninstalled and reinstalled jdk 1.4 multiple times along with textpad but the problem is still there. I am lost so if anyone has any ideas please let me know. i am using win xp.
Posted: Wed Apr 06, 2005 2:38 am
by DarkIncognito
I am having the exact same problem, any help would be greatly appreciated...
Java is installed on my machine and all the usual problems are not the cause of this oddity....
-----------------
D:\Gary\Programming\WordRacerblueJ\WordRacerDriverV3.java:7: cannot resolve symbol
symbol : class WordRacerV3
location: class WordRacerDriverV3
WordRacerV3 wr = new WordRacerV3("TestingMode", 1, "grid.txt");
^
D:\Gary\Programming\WordRacerblueJ\WordRacerDriverV3.java:7: cannot resolve symbol
symbol : class WordRacerV3
location: class WordRacerDriverV3
WordRacerV3 wr = new WordRacerV3("TestingMode", 1, "grid.txt");
^
2 errors
Tool completed with exit code 1
-------
it' can't read the files, yet they're all in the same folder, and I'm not using packages....
Answer to your prayers
Posted: Fri Nov 18, 2005 3:25 am
by Midstep
Hey I used to have this problem but here's a quick and easy fix
go to
Control panel -> System -> Advanced -> Environment Variables
you should see a list of variables at the bottom of the window and CLASSPATH should be fairly obvious
edit CLASSPATH so that .; is placed in front of whatever is currently there
Soo let's say your CLASSPATH variable was c:\Program Files\Various Monkeys\
you need to edit the variable so it reads
.;c:\Program Files\Various Monkeys\
and it's as easy as that, Hope it works for you guys and post if it does or else i might have messed something up here.
