wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 14074
    
  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: 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: simple general
 
Similar Threads
How to set up package, Please Help
Classpath Problem
doubt
Protected
How to use package?