cannot compile. damn fustrated

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
king
Posts: 10
Joined: Wed Feb 16, 2005 6:04 am

cannot compile. damn fustrated

Post 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.
DarkIncognito
Posts: 2
Joined: Wed Apr 06, 2005 2:36 am

Post 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....
Midstep
Posts: 1
Joined: Fri Nov 18, 2005 3:21 am

Answer to your prayers

Post 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. :o
I've tried it all and I'm tired of tryin...
Post Reply