Hiya,
I am new to java, and have just started on classes. I am trying to do a project, however I cant find many resources on classes, and really need some help ASAP.
I have written a class Time.java, however whenever I try to use it in another program (even just create an instance), I get the error:
E:\java\test.java:4: cannot access Time bad class file: E:\java \Time.class unable to access file: E:\java \Time.class (The system cannot find the path specified) Please remove or make sure it appears in the correct subdirectory of the classpa th. Time update = new Time(); ^ 1 error
The classpath is correct and the class is in the right place. I need to get this error sorted quickly and dont have anyone else to ask. I am probably doing something very wrong and obvious, I dont really understand how to write and use my own classes as the book I have does not explain it very well.
Any help/advice would be very helpful. Do I need to do something else to use it (import or something)? The class complies OK.
Thanks,