File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes asking about classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "asking about classpath " Watch "asking about classpath " New topic

asking about classpath

kumar abhay
Ranch Hand

Joined: Oct 02, 2001
Posts: 53
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)
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
Shivaji Marathe
Ranch Hand

Joined: Jan 11, 2002
Posts: 203
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?
I agree. Here's the link:
subject: asking about classpath
jQuery in Action, 3rd edition