The Artima Developer Community
Sponsored Link

Java Answers Forum
well doubt in packages....

1 reply on 1 page. Most recent reply: Aug 23, 2002 3:57 AM by Keshav

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
senthil

Posts: 23
Nickname: rickk84
Registered: Aug, 2002

well doubt in packages.... Posted: Aug 17, 2002 9:42 AM
Reply to this message Reply
Advertisement
when we create a packeage can we create it in any directory..what i mean is
package pkgname;
when i use this command where will it be created.. and if i want it to be created in say another directory,how can it be done..
say i wana create a packeage in d://
am, in c:// how can this be done..


Keshav

Posts: 11
Nickname: kesh
Registered: Aug, 2002

Re: well doubt in packages.... Posted: Aug 23, 2002 3:57 AM
Reply to this message Reply
Hi Senthil

Whenever ur compiling the java file .. u have an option to specify the directory Take for e.g

package senti.sub;

public class Test{
}

When ur compiling the source file can be anywhere & provided ur compiling from the same directory

javac -d D:\Senthil Test.java

It will create a directory structure in D:\Senthil as

D:\Senthil\senti\sub In this directory u will hv ur class files (Test.class)

Hope I have cleared ur doubt

Cheeeeeeeeeeeeeers

Keshav

Flat View: This topic has 1 reply on 1 page
Topic: Deprecated? Previous Topic   Next Topic Topic: Diff between JVM and JRE

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use