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

help with dos

joey whitewolfe

Joined: Sep 07, 2002
Posts: 11
I've never had operating systems, I don't know how to compile a java file that is in a dfferent directory and have another file call upon it and use it. Basically what I'm getting at is - I need my source file created in the root dir and when compiled the class will be directed to respective package. then the program will be compiled and run from the root dir. OK! I can compile java files but not in this way. Setting up dir and then extending out from that dir .I set it up but it doesn't follow out right.mainly it can't read it.javascript: x()
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
check out the -d option in javac to place the complied file in diffrent location with the package specifed in the source.
set the classpath at the time of exection for other file locate your class file.

Sharing is learning
I agree. Here's the link:
subject: help with dos
It's not a secret anymore!