hey all im a beginner java user and am getting an error relating to the classpath i assume.
I have a file JM550b.java which is trying to access the class QTCycle when compiling. QTCycle.java creates a package called jmqt "package jmqt;" and the class is placed in that folder.
QTCycle.java compiles successfuly but when i try to compile JM550b.java i get an error saying "cannot access QTCycle" on the line "private static QTCycle player;"
It also says
"cannot access QTCycle
bad class file: C:\Documents and Settings\Rachae l\Desktop\Dom\T utorial\jmqt\QT Cycle.class
class file contains wrong class: jmqt.QTCycle
Please remove or make sure it appears in the correct subdirectory of the classpath.
private static QTCycle player;"
My directory is like this: (im sure this is where the problems arise please help me im struggling with this!)
Desktop\Dom\Tut orial\src - this is where the main .java files of my project are kept as there a few classes the main program will access.
Desktop\Dom\Tut orial\jmqt - this is where the QTCycle class goes when it is compiled
Im not sure what more i need to say but if anyone can help i will be glad to give all info i can.
Please help!
I have a file JM550b.java which is trying to access the class QTCycle when compiling. QTCycle.java creates a package called jmqt "package jmqt;" and the class is placed in that folder.
QTCycle.java compiles successfuly but when i try to compile JM550b.java i get an error saying "cannot access QTCycle" on the line "private static QTCycle player;"
It also says
"cannot access QTCycle
bad class file: C:\Documents and Settings\Rachae l\Desktop\Dom\T utorial\jmqt\QT Cycle.class
class file contains wrong class: jmqt.QTCycle
Please remove or make sure it appears in the correct subdirectory of the classpath.
private static QTCycle player;"
My directory is like this: (im sure this is where the problems arise please help me im struggling with this!)
Desktop\Dom\Tut orial\src - this is where the main .java files of my project are kept as there a few classes the main program will access.
Desktop\Dom\Tut orial\jmqt - this is where the QTCycle class goes when it is compiled
Im not sure what more i need to say but if anyone can help i will be glad to give all info i can.
Please help!
Comment