The Artima Developer Community
Sponsored Link

Java Answers Forum
Package problems...

2 replies on 1 page. Most recent reply: Dec 30, 2004 2:08 AM by Kondwani Mkandawire

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 2 replies on 1 page
Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Package problems... Posted: Dec 29, 2004 2:18 AM
Reply to this message Reply
Advertisement
Hi Folks:

I have a problem as follows:

I have created a PrintUtilities class and have
placed in in package SubDialogs.Printer;

It compiles but when I try to import it
as follows: import SubDialogs.Printer.PrintUtilities;
the compiler complains that:

"package SubDialogs.Printer does not exist"

I have tried to set the path as follows:

path=C:\Folder1\folderOfApplication\SubDialogs\Printer
but this din't help any.

Any advice and assistance is appreciated.

Spike


Amol Brid

Posts: 43
Nickname: amolbrid
Registered: Feb, 2004

Re: Package problems... Posted: Dec 29, 2004 8:24 PM
Reply to this message Reply
Hi,

Set the CLASSPATH instead of the PATH.

Regards,
Amol Brid.

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Package problems... Posted: Dec 30, 2004 2:08 AM
Reply to this message Reply
> Hi,
>
> Set the CLASSPATH instead of the PATH.
>
> Regards,
> Amol Brid.

Hey thanks a million it worked.

Flat View: This topic has 2 replies on 1 page
Topic: Single File Only, Please. Previous Topic   Next Topic Topic: Starting using Inversion of Control

Sponsored Links



Google
  Web Artima.com   

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