File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes how to compile? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to compile?" Watch "how to compile?" New topic
Author

how to compile?

Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
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

Joined: Aug 21, 2007
Posts: 61
update your classpath with enviornment variable .; or ;.;

also search the forum as it has been asked earlier.
Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
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

Joined: Aug 21, 2007
Posts: 61
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

Joined: Nov 07, 2006
Posts: 127
Thanks a lot mintoo kumar for reply.
Thanks & Regards,
Vilas C. Lawande.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to compile?