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


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

Re: Strange problem with .jar and .class files

From Eric Tonissen <EricTonissen@zonnet.nl>
Newsgroups comp.lang.java.programmer
Subject Re: Strange problem with .jar and .class files
Date 2012-01-13 02:24 -0800
Organization http://groups.google.com
Message-ID <c9f83880-21f2-4ec7-8afc-fe4e56f0b5b7@n6g2000vbz.googlegroups.com> (permalink)
References <86312e3c-b1cd-47d6-819f-5337ac665d00@t13g2000yqg.googlegroups.com>

Show all headers | View raw


On 12 jan, 12:40, Eric Tonissen <EricTonis...@zonnet.nl> wrote:
> I have a Java program normal running. I needed some .class files from
> another project, builded an .jar file from it, added this to the
> classpath and it works.
>
> But now we decided not to use the .class files anymore but to make a
> copy from the corresponding sources to my own project.
> So I did. But now I have a lot of compile errors about sources which
> it also needs ?
>
> I unzipped all the .jars files on the class path, but they are also
> not in here.
>
> Is it possible that the compiler includes information into the .class
> files, so it doesn't need the other .class files anymore?

We find out that the java used lazy loading of the class-files at
runtime.
So an import of a class is only done when needed.
That's why, when I copied only the sources of the class-files to my
project I got compile errors.
Because these sources has methods which I don't use, but needs sources
which are not available.

Thanks for your help.

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


Thread

Strange problem with .jar and .class files Eric Tonissen <EricTonissen@zonnet.nl> - 2012-01-12 03:40 -0800
  Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-12 10:33 -0500
    Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-12 08:14 -0800
      Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-12 12:34 -0500
        Re: Strange problem with .jar and .class files Lew <lewbloch@gmail.com> - 2012-01-12 13:42 -0800
          Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-12 19:38 -0500
            Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-12 21:05 -0800
              Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 03:41 -0500
                Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 04:08 -0500
                Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-13 07:40 -0800
                Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 12:55 -0500
                Re: Strange problem with .jar and .class files Lew <lewbloch@gmail.com> - 2012-01-13 15:34 -0800
                Re: Strange problem with .jar and .class files Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-13 21:45 -0400
  Re: Strange problem with .jar and .class files Roedy Green <see_website@mindprod.com.invalid> - 2012-01-12 09:40 -0800
  Re: Strange problem with .jar and .class files Eric Tonissen <EricTonissen@zonnet.nl> - 2012-01-13 02:24 -0800
    Re: Strange problem with .jar and .class files Lew <noone@lewscanon.com> - 2012-01-13 07:42 -0800
      Re: Strange problem with .jar and .class files Jeff Higgins <jeff@invalid.invalid> - 2012-01-13 13:18 -0500
        Re: Strange problem with .jar and .class files Lew <lewbloch@gmail.com> - 2012-01-13 15:40 -0800

csiph-web