aspose 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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to compile?