File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Package compilation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Package compilation" Watch "Package compilation" New topic
Author

Package compilation

geeta rai
Ranch Hand

Joined: Sep 18, 2003
Posts: 48
Hi,
I've a class "a.java" in the folder d:\practice\com\dan and have a package statement
package com.dan
as the first statement in a.java. I want to put the compiled file in a separate folder d:\practice\classes so i compiled the file as
javac -d classes com\dan\a.java from the "practice" folder.
The file got compiled but two additional folders com and dan were created in classes folder. How can i compile it without creating those additional folders?
Thanks.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1865
Hi Geeta
well, if we create a package then it will create folders you see. Can you let us know the reason why you don't want those folders (com/dan) there?
Regards
Maulin


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Package compilation
 
Similar Threads
How to compile two classes that need each other
Package/Classpath problem with 1.4
problem using javac with -classpath option
importing multiple classes from a package
package problem