This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 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 "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: 14114
    
  16

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: 143

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: simple general