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


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

Re: Where is Java class located on Linux systems?

From markspace <markspace@nospam.nospam>
Newsgroups comp.lang.java.programmer
Subject Re: Where is Java class located on Linux systems?
Date 2014-06-21 23:52 -0700
Organization A noiseless patient Spider
Message-ID <lo5uer$9gf$1@dont-email.me> (permalink)
References <dd8b1a26-3168-454d-94ed-ddc473e28740@googlegroups.com>

Show all headers | View raw


On 6/21/2014 8:52 PM, Tom Tylor wrote:

> For the "import ...;" lines, I just wonder where the class files are
> located on my system. Can anyone help?
>

On the classpath.  I'm a little fuzzy on the exact details, and it 
depends what tool you use (each IDE will have its own rules, for 
example) but generally speaking each tool will read the classpath to 
resolve any imports.

http://docs.oracle.com/javase/tutorial/essential/environment/paths.html

The latest compilers (javac) use a special abbreviated file to reference 
system classes.  This doesn't include classes from rt.jar which you 
normally shouldn't access.  So if a class from the sun.* hierarchy stops 
being located during a compile, you have to use a special little bit of 
magic to get javac to use the full rt.jar.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Where is Java class located on Linux systems? Tom Tylor <tomcmpt@gmail.com> - 2014-06-21 20:52 -0700
  Re: Where is Java class located on Linux systems? markspace <markspace@nospam.nospam> - 2014-06-21 23:52 -0700
  Re: Where is Java class located on Linux systems? lipska the kat <lipskathekat@example.com> - 2014-06-22 08:33 +0100
  Re: Where is Java class located on Linux systems? Jeff Higgins <jeff@invalid.invalid> - 2014-06-22 08:00 -0400
  Re: Where is Java class located on Linux systems? Roedy Green <see_website@mindprod.com.invalid> - 2014-06-25 08:13 -0700

csiph-web