File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
simple general
akash shrimali
Ranch Hand
Joined: Jul 28, 2010
Posts: 45
posted
Aug 18, 2010 03:39:34
0
how can we compile a javacode which contains package use ??? is there a single way or more than that ???
javac -d . classname.java
package abc; public class pack { public int i=10; public static void main(String args[]) { pack j=new pack(); System.out.println(j.i); } }
ANSWER MUST BE CONTAIN METHOD OF COMPILATION WHICH IS NOT PHYSICAL !!
Raymond Tong
Ranch Hand
Joined: Aug 15, 2010
Posts: 156
I like...
posted
Aug 18, 2010 03:56:16
0
Managing Source and Class Files
You should place your pack.java in subfolder named abc
and run the following commands
javac abc\pack.java java abc.pack
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
3
I like...
posted
Aug 18, 2010 04:16:57
0
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: 98
I like...
posted
Aug 18, 2010 05:37:06
0
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.
I agree. Here's the link:
http://aspose.com/file-tools
subject: simple general
Similar Threads
doubt
How to set up package, Please Help
Protected
How to use package?
Classpath Problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter