Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to compile and run package programs in Java

807606May 8 2007 — edited May 9 2007
Hi,

I want to know how to compile and run the package programs in Java using -d. instead of creating the package folder manually.

eg:
package Test;

class test1

{
public void disp()
{
//Any code;
}
}

I want to compile this without creating the folder ' Test ' manually. that is if we use -d with javac the Test folder will be created automatically. I need the format of -d

could anyone please help me.

Thanks in Advance ,
Ambika
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2007
Added on May 8 2007
16 comments
941 views