The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


import problem with packages

Posted by Paramesh on July 29, 2000 at 10:14 AM


I am a beginner in java and landing into troubles when I code a statement to import "java.util.*", but when I import a particular class like "java.util.Vector", I could able to compile programs successfully. Similary I am encountering same problem of unresolved references in compilations when
I import classes from my directory called "mypackages"(the class path is set till the parent directory of mypackages subdir) . In the later case I am not able to get a thru compilations if I code "import mypackages.*" but could able to
succeed if I explicitly code "import mypackages.ex1" (ex1.class is there in dir mypackages).

Can anyone please trhrow some light on this small problem.

Thanks in advance.



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us