aspose 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
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: 14273
    
  21

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 8 API documentation
Jan Hoppmann
Ranch Hand

Joined: Jul 19, 2010
Posts: 147

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