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 simple  general Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "simple  general" Watch "simple  general" New topic
Author

simple general

akash shrimali
Ranch Hand

Joined: Jul 28, 2010
Posts: 45
how can we compile a javacode which contains package use ??? is there a single way or more than that ???

javac -d . classname.java




ANSWER MUST BE CONTAIN METHOD OF COMPILATION WHICH IS NOT PHYSICAL !!
Raymond Tong
Ranch Hand

Joined: Aug 15, 2010
Posts: 230
    
    2

Managing Source and Class Files
You should place your pack.java in subfolder named abc
and run the following commands

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13868
    
  10

Please UseAMeaningfulSubjectLine - "simple general" doesn't say anything about what your question is about.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Jan Hoppmann
Ranch Hand

Joined: Jul 19, 2010
Posts: 142

akash shrimali wrote:
ANSWER MUST BE CONTAIN METHOD OF COMPILATION WHICH IS NOT PHYSICAL !!


And please KeepItDown.


Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
 
 
subject: simple general
 
Similar Threads
Protected
How to set up package, Please Help
How to use package?
doubt
Classpath Problem