Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to compile?

 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ranchers,
I know that.
javac programname.java is used for compile th program.
but,
how to compile programs present in directory from outside of that directory?
Please reply immediatly.
Thanks,
Vilas Lawande.
 
Mintoo kumar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
update your classpath with enviornment variable .; or ;.;

also search the forum as it has been asked earlier.
 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Thanjs for reply.
My one program is directory 'beans' name is EmpBean.java
My another program is in diesctory 'business' name is EmpBusiness.java
I am importing that package (beans)and not using any IDE.
My program is not compling as not getting beans package.
Both directory are at same level.

Vilas
 
Mintoo kumar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure that EmpBeans.java is in either class path or it should be anyway avialiabe to EmpBusiness.java.

As i understood from your post that you have imported it in EmpBusiness.java but not able to compile.So the reason i see is only the above i mentioned it.
 
Vilas Lawande
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot mintoo kumar for reply.
Thanks & Regards,
Vilas C. Lawande.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic