Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23231
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2013-04-03 15:33 -0700 |
| References | <32362f98-0254-4534-b5c7-03c05878f880@googlegroups.com> |
| Message-ID | <03369d1c-3353-44d8-a3a5-25e2244eaae3@googlegroups.com> (permalink) |
| Subject | Re: What is the import for a Layer |
| From | Lew <lewbloch@gmail.com> |
clusa...@aol.com wrote:
> I've got a project that doesn't reconize "Layer". Is there something that I can try importing to get past this error.
Yes.
But you need to provide complete information. What do you mean the 'project ... doesn't
recognize "Layer"'?
How do you know?
What is 'Layer'? Is it a type? What package is it in? What JAR?
You need either to fully qualify the type name or import that type according to the standard,
basic, fundamental use of 'import', which would have been one of the earliest things you would
have learned in Java.
So if the package is, for example, 'com.example.foo.layer', and 'Layer' is a type within that
package, you would refer to 'Layer' in source either as
'com.example.foo.layer.Layer'
or use 'import' to allow you to use the simple type name elsewhere in your source module
import com.example.foo.layer.Layer;
public class YourClass
{
. . .
Bar kabar = new Layer().framitz();
. . .
}
But you really have to explain what you mean and be precise about what you observe (such
as error messages, etc.) to give anyone enough information to help you. Consider studying
http://sscce.org/
and providing one.
--
Lew
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
What is the import for a Layer clusardi2k@aol.com - 2013-04-03 15:01 -0700
Re: What is the import for a Layer Arne Vajhøj <arne@vajhoej.dk> - 2013-04-03 18:18 -0400
Re: What is the import for a Layer Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-04-03 19:32 -0300
Re: What is the import for a Layer "John B. Matthews" <nospam@nospam.invalid> - 2013-04-04 07:26 -0400
Re: What is the import for a Layer Lew <lewbloch@gmail.com> - 2013-04-03 15:33 -0700
csiph-web