Re: Package and compiling
From: Raymond DeCampo (rdecampo_at_spam-I-am-not.twcny.rr.com)
Date: 02/18/04
- Previous message: nos: "Re: Java Events"
- In reply to: Isa: "Package and compiling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 18 Feb 2004 01:07:17 GMT
Isa wrote:
> Hi!
> I have a question about the package and Java class files. I hope someone can
> answar me. When I compile a java source file with a package statement I
> expect that the compiler should create the package directories and put the
> class file there.
> For example:
>
> package homecompany.utilies;
> public class graph{
> ...
> }
>
> The command C:\ javac graph.java compiles and create the class file
> graph.class
> in the same directory. I suppose that the class file graph.class should
> placed in the
> directory C:\homecompany\utilies\, but it does not. The development env. is
> windows xp with Java SDK 1.4_2.
>
> Thanks to any comment
> Isa
>
First, get the JDK documentation from Sun. Part of the documentation is
"Tool Documentation" and that will tell you lots of things about javac,
java, etc.
What you want is the -d option to javac.
Ray
- Previous message: nos: "Re: Java Events"
- In reply to: Isa: "Package and compiling"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|