hi there, hope u ppl r doin' fine.i have a problem regarding packages in java.i tried to set the class path of a package like"d:\javaa\game"(currently i m here) where game is the package name i tried like "d:\javaa"(new classpath) i gave that classpath to it,since then jave compiler just compiles every programme but while running it gives the message"no class deffound" not to only that class.i tried to run another file from another folder (which was running fully before that but later did not work out) even then it gave the same message.i m really confused aboutr it.plz help me out that wat i should do about it&how should i get it as it was before. i will wait for ur reply.i m really upset about it. take care with regards kumar abhay
posted 14 years ago
You can not set classpath of a package. Class path is way that the operating system of your machine tells the Java Virtual Machine where the JVM can locate classes ( and packages). Are you just trying to add the 'd:\java\games\' to your classpath?