This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with dos

 
joey whitewolfe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic