This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Don't get me started about those stupid light bulbs.
 
subject: how to compile?
 
Similar Threads
reading
creating servlet
how to compile some files from lot of files in a directory
Compiling java file
Regarding Package