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

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!feeder3.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!n6g2000vbz.googlegroups.com!not-for-mail
From Eric Tonissen <EricTonissen@zonnet.nl>
Newsgroups comp.lang.java.programmer
Subject Re: Strange problem with .jar and .class files
Date Fri, 13 Jan 2012 02:24:50 -0800 (PST)
Organization http://groups.google.com
Lines 25
Message-ID <c9f83880-21f2-4ec7-8afc-fe4e56f0b5b7@n6g2000vbz.googlegroups.com> (permalink)
References <86312e3c-b1cd-47d6-819f-5337ac665d00@t13g2000yqg.googlegroups.com>
NNTP-Posting-Host 188.201.174.89
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1326450409 21434 127.0.0.1 (13 Jan 2012 10:26:49 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Fri, 13 Jan 2012 10:26:49 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info n6g2000vbz.googlegroups.com; posting-host=188.201.174.89; posting-account=qUFOlgoAAACGFY6IkcD1yUAko9_DXM4a
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order ASELCHRU
X-HTTP-UserAgent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11300

Show key headers only | 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