Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23231

Re: What is the import for a Layer

X-Received by 10.224.18.132 with SMTP id w4mr1985119qaa.1.1365028411595; Wed, 03 Apr 2013 15:33:31 -0700 (PDT)
X-Received by 10.50.140.65 with SMTP id re1mr660509igb.13.1365028411528; Wed, 03 Apr 2013 15:33:31 -0700 (PDT)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ca1no28193465qab.0!news-out.google.com!ef9ni1264qab.0!nntp.google.com!ca1no28193454qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Wed, 3 Apr 2013 15:33:31 -0700 (PDT)
In-Reply-To <32362f98-0254-4534-b5c7-03c05878f880@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
NNTP-Posting-Host 69.28.149.29
References <32362f98-0254-4534-b5c7-03c05878f880@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <03369d1c-3353-44d8-a3a5-25e2244eaae3@googlegroups.com> (permalink)
Subject Re: What is the import for a Layer
From Lew <lewbloch@gmail.com>
Injection-Date Wed, 03 Apr 2013 22:33:31 +0000
Content-Type text/plain; charset=ISO-8859-1
Lines 38
Xref csiph.com comp.lang.java.programmer:23231

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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