Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Unable to use package...why ??? Date: Tue, 25 Oct 2011 15:57:42 -0700 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: <280344ac-b398-44b3-b775-e84859feb5f0@gy7g2000vbb.googlegroups.com> <9gne1vFvskU1@mid.individual.net> <02de641c-1c6a-420b-b059-c17444e1ff3e@g25g2000yqh.googlegroups.com> <9gnn4cFbaqU1@mid.individual.net> <90be2370-ecdc-4da7-839c-26dbeee92e9d@c1g2000vbw.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 25 Oct 2011 22:57:45 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="31762"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cr/VCifoaKpbUOfdqMMNdtrk0HZvwclM=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: <90be2370-ecdc-4da7-839c-26dbeee92e9d@c1g2000vbw.googlegroups.com> Cancel-Lock: sha1:AnTTkKZIST9+b7JZSUF80MhjJz8= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9182 On 10/25/2011 3:21 PM, PortisHead wrote: > > Showbcard , imports Getbcard in its scripting. > So it makes pretty much good sense to include the "c:\myclasses" I think this is the problem here. "Import" doesn't really import anything. It just tells the compiler that the class is in use. It's the java command that does the importing. It needs the directory of each and every class you use, and it needs the .class files, not the .java files. Go look at the location of the .class files you are using, and I think it'll make sense. You can actually see the java command load classes if you use the -verbose option. java -verbose -cp c:\myclasses;c:\examples Showbcard