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


Groups > comp.lang.java.help > #888

Re: Beginners Problem - Class Definition Not Found

From lewbloch <lewbloch@gmail.com>
Newsgroups comp.lang.java.help
Subject Re: Beginners Problem - Class Definition Not Found
Date 2011-07-23 09:49 -0700
Organization http://groups.google.com
Message-ID <8d665ad3-71cb-471f-b48c-fb56c7378dde@q29g2000prj.googlegroups.com> (permalink)
References <j0c2h9$c93$1@theodyn.ncf.ca> <n41k275j1di59tm6ilgbrmu80diegtsj4f@4ax.com>

Show all headers | View raw


Roedy Green wrote:
> William Colls wrote, quoted or indirectly quoted someone who said :
>> At runtime, the CLASSPATH variable points to the folder that contains
>> all the .jar files that are referenced by the import statements.
>
> That would be nice, but that's not how it works.

It *is* how it works if you get the syntax right.  See my earlier
post.

As you correctly point out in
http://mindprod.com/jgloss/classpath.html
http://mindprod.com/jgloss/classpath.html#JAR

However, OP, import directives do not reference JARs, nor files of any
kind, they reference classes and static members thereof.

--
Lew

Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar


Thread

Beginners Problem - Class Definition Not Found William Colls <william.colls@rogers.com> - 2011-07-22 10:47 -0400
  Re: Beginners Problem - Class Definition Not Found Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-07-22 16:08 +0100
    Re: Beginners Problem - Class Definition Not Found lewbloch <lewbloch@gmail.com> - 2011-07-22 13:47 -0700
  Re: Beginners Problem - Class Definition Not Found Roedy Green <see_website@mindprod.com.invalid> - 2011-07-22 16:16 -0700
    Re: Beginners Problem - Class Definition Not Found lewbloch <lewbloch@gmail.com> - 2011-07-23 09:49 -0700

csiph-web