File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "help with dos" Watch "help with dos" New topic
Author

help with dos

joey whitewolfe
Greenhorn

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()
Eek!
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Hi,
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.
-arun


Sharing is learning
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with dos
 
Similar Threads
How to set class path during compilation
Need Help in compiling package
Tomcat Help!
how can i create a java program to view the contents of a dir?
Swing not working ...