I know this has come up a number of times, but previous responses just don't seem to help. My environment variables are :
- CLASSPATH
C:\Program Files\Java\jre7\lib;C:\Program Files\Java\jdk1.7.0_15\bin; - PATH
C:\Program Files\Java\jdk1.7.0_15\bin;
When moving to the directory as follows C:\Users\Oli\My Documents\java I can compile using javac, but cannot runt he program using java. I know its most likely got something to do with environment variables but I cannot get it to work. P.S the error is "could not find or load main class"
Any help would be appreciated.