• Post Reply Bookmark Topic Watch Topic
  • New Topic

Seperating bytecodes from same directory location of .java files in some other location  RSS feed

 
Vinod Vijay
Ranch Hand
Posts: 165
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have setup everything on Ubuntu server. Java home path are set. I can create hello world programs and running Java. I'm loving and enjoying Java very well. All i need now is to separate all the generated byte codes in some other location. How to achieve that?

Is that something related to "javac -d" ?

Thanks
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinod Vijay wrote:Hi, I have setup everything on Ubuntu server. Java home path are set. I can create hello world programs and running Java. I'm loving and enjoying Java very well. All i need now is to separate all the generated byte codes in some other location. How to achieve that?

Is that something related to "javac -d" ?

Thanks


Yes, the -d argument tells the compiler where to put the root directory for the generated .class files. Wouldn't it have been easier to just try it, rather than posting a question here?
 
Vinod Vijay
Ranch Hand
Posts: 165
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff Verdegan wrote:

Yes, the -d argument tells the compiler where to put the root directory for the generated .class files. Wouldn't it have been easier to just try it, rather than posting a question here?


Yes, I tried and it worked.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!